diff options
author | Jeff Ames | 2009-06-10 04:28:56 +0000 |
---|---|---|
committer | Jeff Ames | 2009-06-10 04:28:56 +0000 |
commit | a23d64dec1cbf88abc3c7e84664a683dee534e4a (patch) | |
tree | 7e85403f29839775209481ba7f6ee55aac56f209 /OpenSim/Region/ScriptEngine/Shared/CodeTools | |
parent | Letting the Flotsam cache be enabled even when [AssetCache] section is missin... (diff) | |
download | opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.zip opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.gz opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.bz2 opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.xz |
Formatting cleanup.
Diffstat (limited to '')
3 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index 91747af..41ecfd3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | |||
@@ -676,20 +676,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
676 | 676 | ||
677 | // It's possible that we don't have an assignment, in which case | 677 | // It's possible that we don't have an assignment, in which case |
678 | // the child will be null and we only print the semicolon. | 678 | // the child will be null and we only print the semicolon. |
679 | // for ( x = 0 ; x < 10 ; x++ ) | 679 | // for (x = 0; x < 10; x++) |
680 | // ^^^^^^^ | 680 | // ^^^^^ |
681 | ForLoopStatement s = (ForLoopStatement) fl.kids.Pop(); | 681 | ForLoopStatement s = (ForLoopStatement) fl.kids.Pop(); |
682 | if (null != s) | 682 | if (null != s) |
683 | { | 683 | { |
684 | retstr += GenerateForLoopStatement(s); | 684 | retstr += GenerateForLoopStatement(s); |
685 | } | 685 | } |
686 | retstr += Generate("; "); | 686 | retstr += Generate("; "); |
687 | // for ( x = 0 ; x < 10 ; x++ ) | 687 | // for (x = 0; x < 10; x++) |
688 | // ^^^^^^^^ | 688 | // ^^^^^^ |
689 | retstr += GenerateNode((SYMBOL) fl.kids.Pop()); | 689 | retstr += GenerateNode((SYMBOL) fl.kids.Pop()); |
690 | retstr += Generate("; "); | 690 | retstr += Generate("; "); |
691 | // for ( x = 0 ; x < 10 ; x++ ) | 691 | // for (x = 0; x < 10; x++) |
692 | // ^^^^^ | 692 | // ^^^ |
693 | retstr += GenerateForLoopStatement((ForLoopStatement) fl.kids.Pop()); | 693 | retstr += GenerateForLoopStatement((ForLoopStatement) fl.kids.Pop()); |
694 | retstr += GenerateLine(")"); | 694 | retstr += GenerateLine(")"); |
695 | 695 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 5c7ce43..a1525b9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | |||
@@ -573,7 +573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
573 | display--; | 573 | display--; |
574 | 574 | ||
575 | string severity = "Error"; | 575 | string severity = "Error"; |
576 | if ( CompErr.IsWarning ) | 576 | if (CompErr.IsWarning) |
577 | { | 577 | { |
578 | severity = "Warning"; | 578 | severity = "Warning"; |
579 | } | 579 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs index cacb8be..e77b3d2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs | |||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
95 | // It's possible that a child is null, for instance when the | 95 | // It's possible that a child is null, for instance when the |
96 | // assignment part in a for-loop is left out, ie: | 96 | // assignment part in a for-loop is left out, ie: |
97 | // | 97 | // |
98 | // for ( ; i < 10; i++) | 98 | // for (; i < 10; i++) |
99 | // { | 99 | // { |
100 | // ... | 100 | // ... |
101 | // } | 101 | // } |