Mantis#1437. Patch 2 of 4. Thank you kindly, Melanie for:

Corrects the XEngine's script startup semantics.
Completes llRequestAgentData
Implements llDetectedLink
Fixes a few minor issues
0.6.0-stable
Charles Krinke 2008-06-05 14:17:22 +00:00
parent e3c14e9b24
commit bbabd68c7c
1 changed files with 11 additions and 0 deletions

View File

@ -302,6 +302,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
RegexOptions.Compiled | RegexOptions.Multiline); RegexOptions.Compiled | RegexOptions.Multiline);
} }
// Change jumps into goto's and prefix its label
Script =
Regex.Replace(Script,
@"(\W)jump\s+([a-zA-Z_][a-zA-Z_0-9]*)\s*;",
@"$1goto label_$2;", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
// and prefix labels so the do not clash with C#'s reserved words
Script =
Regex.Replace(Script,
@"@([a-zA-Z_][a-zA-Z_0-9]*)\s*;",
@"label_$1: ;", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
// Add "void" in front of functions that needs it // Add "void" in front of functions that needs it
Script = Script =
Regex.Replace(Script, Regex.Replace(Script,