aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
diff options
context:
space:
mode:
authorDr Scofield2008-06-30 11:57:47 +0000
committerDr Scofield2008-06-30 11:57:47 +0000
commit313f7f60fda81c987e0ac4da4dc8c2f5def46b72 (patch)
tree71c30ab49c97a17d157c59877842d159f5eac3e1 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
parentdisables spam-like debugging messages inadvertently left on in last commit (o... (diff)
downloadopensim-SC-313f7f60fda81c987e0ac4da4dc8c2f5def46b72.zip
opensim-SC-313f7f60fda81c987e0ac4da4dc8c2f5def46b72.tar.gz
opensim-SC-313f7f60fda81c987e0ac4da4dc8c2f5def46b72.tar.bz2
opensim-SC-313f7f60fda81c987e0ac4da4dc8c2f5def46b72.tar.xz
properly explaining each #pragma warning disable
massaging OSHttpRequestPump to not abort on exceptions...
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
index d6115ce..96f2b89 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/YPCompiler.cs
@@ -209,9 +209,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
209 object[] functorArgs = YP.getFunctorArgs(Term); 209 object[] functorArgs = YP.getFunctorArgs(Term);
210 210
211 Variable pred = new Variable(); 211 Variable pred = new Variable();
212 // disable warning on l1, don't see how we can 212// disable warning: don't see how we can code this differently short
213 // code this differently 213// of rewriting the whole thing
214 #pragma warning disable 0168 214#pragma warning disable 0168
215 foreach (bool l1 in ((CompilerState)State)._pred.match 215 foreach (bool l1 in ((CompilerState)State)._pred.match
216 (new object[] { functorName, functorArgs.Length, pred, Atom.a("det") })) 216 (new object[] { functorName, functorArgs.Length, pred, Atom.a("det") }))
217 { 217 {
@@ -220,7 +220,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
220 return true; 220 return true;
221 } 221 }
222 } 222 }
223 #pragma warning restore 0168 223#pragma warning restore 0168
224 224
225 return false; 225 return false;
226 } 226 }
@@ -232,9 +232,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
232 object[] functorArgs = YP.getFunctorArgs(Term); 232 object[] functorArgs = YP.getFunctorArgs(Term);
233 233
234 Variable pred = new Variable(); 234 Variable pred = new Variable();
235 // disable warning on l1, don't see how we can 235// disable warning: don't see how we can code this differently short
236 // code this differently 236// of rewriting the whole thing
237 #pragma warning disable 0168 237#pragma warning disable 0168
238 foreach (bool l1 in ((CompilerState)State)._pred.match 238 foreach (bool l1 in ((CompilerState)State)._pred.match
239 (new object[] { functorName, functorArgs.Length, pred, Atom.a("semidet") })) 239 (new object[] { functorName, functorArgs.Length, pred, Atom.a("semidet") }))
240 { 240 {
@@ -243,7 +243,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
243 return true; 243 return true;
244 } 244 }
245 } 245 }
246 #pragma warning restore 0168 246#pragma warning restore 0168
247 247
248 return false; 248 return false;
249 } 249 }
@@ -285,7 +285,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
285 285
286 // disable warning unused variables, the following code is 286 // disable warning unused variables, the following code is
287 // infested with it. 287 // infested with it.
288 #pragma warning disable 0168, 0219 288#pragma warning disable 0168, 0219
289 289
290 /// <summary> 290 /// <summary>
291 /// Use makeFunctionPseudoCode, convertFunctionCSharp and compileAnonymousFunction 291 /// Use makeFunctionPseudoCode, convertFunctionCSharp and compileAnonymousFunction