From 620f7926f3f2ad05fdb72050a87e49d0fa2357dd Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 16 Jul 2008 01:00:40 +0000 Subject: Mantis#1753. Thank you kindly, Kinoc for a patch that: Brings Yield Prolog up to date with sourceforge version 0.9.10 Patched applies to both DotNet and XEngine. --- OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 1 + OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools') diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 09d816f..a8c61ed 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs @@ -544,6 +544,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools ", Error Number: " + CompErr.ErrorNumber + ", '" + CompErr.ErrorText + "'\r\n"; } + Console.WriteLine("[COMPILER ERROR]:" + errtext); if (!File.Exists(OutFile)) { throw new Exception(errtext); diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs index 52c8251..831b918 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/YP2CSConverter.cs @@ -98,6 +98,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools @"this.$1(", RegexOptions.Compiled | RegexOptions.Singleline); finalcode = Regex.Replace(finalcode, + @"YP.script_event\(Atom.a\(\""(.*?)""\)\,", + @"this.$1(", + RegexOptions.Compiled | RegexOptions.Singleline); + finalcode = Regex.Replace(finalcode, @" static ", @" ", RegexOptions.Compiled | RegexOptions.Singleline); -- cgit v1.1