mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Formatting cleanup.
This commit is contained in:
@@ -165,7 +165,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
// if level == 0, add to return
|
||||
if (ilevel == 1 && lastlevel == 0)
|
||||
{
|
||||
// 0 => 1: Get last
|
||||
// 0 => 1: Get last
|
||||
Match m =
|
||||
Regex.Match(cache, @"(?![a-zA-Z_]+)\s*([a-zA-Z_]+)[^a-zA-Z_\(\)]*{",
|
||||
RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
|
||||
|
||||
@@ -98,9 +98,9 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
ads.ConfigurationFile
|
||||
);
|
||||
|
||||
// Display the name of the calling AppDomain and the name
|
||||
// Display the name of the calling AppDomain and the name
|
||||
// of the second domain.
|
||||
// NOTE: The application's thread has transitioned between
|
||||
// NOTE: The application's thread has transitioned between
|
||||
// AppDomains.
|
||||
Console.WriteLine("Calling to '{0}'.",
|
||||
Thread.GetDomain().FriendlyName
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
Common.SendToDebug("IL_CREATE_CONSTRUCTOR()");
|
||||
//ConstructorBuilder constructor = typeBuilder.DefineConstructor(
|
||||
// MethodAttributes.Public,
|
||||
// CallingConventions.Standard,
|
||||
// CallingConventions.Standard,
|
||||
// new Type[0]);
|
||||
ConstructorBuilder constructor = typeBuilder.DefineConstructor(
|
||||
MethodAttributes.Public |
|
||||
@@ -191,8 +191,8 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
//// Create state object
|
||||
//FieldName = "State";
|
||||
//FieldBuilder State_fb = typeBuilder.DefineField(
|
||||
// FieldName,
|
||||
// typeof(UInt32),
|
||||
// FieldName,
|
||||
// typeof(UInt32),
|
||||
// FieldAttributes.Public);
|
||||
//il.Emit(OpCodes.Ldarg_0);
|
||||
//il.Emit(OpCodes.Ldc_I4, 0);
|
||||
@@ -205,8 +205,8 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
|
||||
//FieldName = "LSL_BuiltIns";
|
||||
//FieldBuilder LSL_BuiltIns_fb = typeBuilder.DefineField(
|
||||
// FieldName,
|
||||
// objType1,
|
||||
// FieldName,
|
||||
// objType1,
|
||||
// FieldAttributes.Public);
|
||||
|
||||
////LSL_BuiltIn_Commands_TestImplementation _ti = new LSL_BuiltIn_Commands_TestImplementation();
|
||||
|
||||
@@ -36,9 +36,9 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
*
|
||||
* These are internal "assembly" commands,
|
||||
* basic operators like "ADD", "PUSH" and "POP"
|
||||
*
|
||||
*
|
||||
* It also contains managed stack and keeps track of internal variables, etc.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
/// </summary>
|
||||
public void Parse()
|
||||
{
|
||||
// The LSO Format consist of 6 major blocks: header, statics, functions, states, heap, and stack.
|
||||
// The LSO Format consist of 6 major blocks: header, statics, functions, states, heap, and stack.
|
||||
|
||||
|
||||
// HEADER BLOCK
|
||||
@@ -295,7 +295,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
myEventCodeChunk = new LSO_Struct.CodeChunk[myStateFrameBlock.StateCount];
|
||||
for (int i = 0; i < myStateFrameBlock.StateCount; i++)
|
||||
{
|
||||
// TODO: Somehow organize events and functions so they can be found again,
|
||||
// TODO: Somehow organize events and functions so they can be found again,
|
||||
// two level search ain't no good
|
||||
for (int ii = 0; ii < myStateFrameBlock.StatePointer[i].EventMask.Count - 1; ii++)
|
||||
{
|
||||
@@ -373,7 +373,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO
|
||||
|
||||
//private byte[] br_read_smallendian(int len)
|
||||
//{
|
||||
// byte[] bytes = new byte[len];
|
||||
// byte[] bytes = new byte[len];
|
||||
// br.Read(bytes,0, len);
|
||||
// return bytes;
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user