diff options
author | Sean Dague | 2008-06-02 20:27:40 +0000 |
---|---|---|
committer | Sean Dague | 2008-06-02 20:27:40 +0000 |
commit | 7f6fcdc77b85a17a5fc7fd0fcd67572c43689edc (patch) | |
tree | cd995a9167bc37db33fcf3579f1c873d31eb88a5 | |
parent | * Fixed default ports on the MessagingServer config. (diff) | |
download | opensim-SC-7f6fcdc77b85a17a5fc7fd0fcd67572c43689edc.zip opensim-SC-7f6fcdc77b85a17a5fc7fd0fcd67572c43689edc.tar.gz opensim-SC-7f6fcdc77b85a17a5fc7fd0fcd67572c43689edc.tar.bz2 opensim-SC-7f6fcdc77b85a17a5fc7fd0fcd67572c43689edc.tar.xz |
remove the prolog parser from all LSL/C# scripts (it was adding overhead
to every script in most environments). This will break prolog
support. Prolog code needs to generate it's template script more like
how javascript does.
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index 81eb86b..abad59c 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | |||
@@ -335,19 +335,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
335 | 335 | ||
336 | private static string CreateCSCompilerScript(string compileScript) | 336 | private static string CreateCSCompilerScript(string compileScript) |
337 | { | 337 | { |
338 | |||
339 | |||
340 | compileScript = String.Empty + | 338 | compileScript = String.Empty + |
341 | "using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog; " + | 339 | "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + |
342 | "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + | 340 | String.Empty + "namespace SecondLife { " + |
343 | String.Empty + "namespace SecondLife { " + | 341 | String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass { \r\n" + |
344 | String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass { \r\n" + | 342 | @"public Script() { } " + |
345 | //@"public Script() { } " + | 343 | compileScript + |
346 | @"static OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog.YP YP=null; " + | 344 | "} }\r\n"; |
347 | @"public Script() { YP= new OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog.YP(); } "+ | ||
348 | |||
349 | compileScript + | ||
350 | "} }\r\n"; | ||
351 | return compileScript; | 345 | return compileScript; |
352 | } | 346 | } |
353 | 347 | ||