diff options
author | UbitUmarov | 2018-12-08 02:26:36 +0000 |
---|---|---|
committer | UbitUmarov | 2018-12-08 02:26:36 +0000 |
commit | f8c3fc5e055905e440119b27eb33aec28fe8c69c (patch) | |
tree | d96ae30ca3ac43a04baccf44596ccfeca18ed819 /OpenSim/Region/ScriptEngine/YEngine/MMRScriptBinOpStr.cs | |
parent | return a proper http error (diff) | |
download | opensim-SC-f8c3fc5e055905e440119b27eb33aec28fe8c69c.zip opensim-SC-f8c3fc5e055905e440119b27eb33aec28fe8c69c.tar.gz opensim-SC-f8c3fc5e055905e440119b27eb33aec28fe8c69c.tar.bz2 opensim-SC-f8c3fc5e055905e440119b27eb33aec28fe8c69c.tar.xz |
mantis 8416: test
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/MMRScriptBinOpStr.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptBinOpStr.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptBinOpStr.cs index 0d6d4bd..f5e91f7 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptBinOpStr.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptBinOpStr.cs | |||
@@ -83,7 +83,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
83 | private static TokenTypeVec tokenTypeVec = new TokenTypeVec(null); | 83 | private static TokenTypeVec tokenTypeVec = new TokenTypeVec(null); |
84 | 84 | ||
85 | private static MethodInfo stringAddStringMethInfo = ScriptCodeGen.GetStaticMethod(typeof(string), "Concat", new Type[] { typeof(string), typeof(string) }); | 85 | private static MethodInfo stringAddStringMethInfo = ScriptCodeGen.GetStaticMethod(typeof(string), "Concat", new Type[] { typeof(string), typeof(string) }); |
86 | private static MethodInfo stringCmpStringMethInfo = ScriptCodeGen.GetStaticMethod(typeof(string), "Compare", new Type[] { typeof(string), typeof(string) }); | 86 | private static MethodInfo stringCmpStringMethInfo = ScriptCodeGen.GetStaticMethod(typeof(string), "Compare", new Type[] { typeof(string), typeof(string), typeof(StringComparison) }); |
87 | 87 | ||
88 | private static MethodInfo infoMethListAddFloat = GetBinOpsMethod("MethListAddFloat", new Type[] { typeof(LSL_List), typeof(double) }); | 88 | private static MethodInfo infoMethListAddFloat = GetBinOpsMethod("MethListAddFloat", new Type[] { typeof(LSL_List), typeof(double) }); |
89 | private static MethodInfo infoMethListAddInt = GetBinOpsMethod("MethListAddInt", new Type[] { typeof(LSL_List), typeof(int) }); | 89 | private static MethodInfo infoMethListAddInt = GetBinOpsMethod("MethListAddInt", new Type[] { typeof(LSL_List), typeof(int) }); |
@@ -959,6 +959,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
959 | result.PopPre(scg, errorAt); | 959 | result.PopPre(scg, errorAt); |
960 | left.PushVal(scg, errorAt, tokenTypeStr); | 960 | left.PushVal(scg, errorAt, tokenTypeStr); |
961 | right.PushVal(scg, errorAt, tokenTypeStr); | 961 | right.PushVal(scg, errorAt, tokenTypeStr); |
962 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
962 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 963 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
963 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); | 964 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); |
964 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); | 965 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); |
@@ -970,6 +971,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
970 | result.PopPre(scg, errorAt); | 971 | result.PopPre(scg, errorAt); |
971 | left.PushVal(scg, errorAt, tokenTypeStr); | 972 | left.PushVal(scg, errorAt, tokenTypeStr); |
972 | right.PushVal(scg, errorAt, tokenTypeStr); | 973 | right.PushVal(scg, errorAt, tokenTypeStr); |
974 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
973 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 975 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
974 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); | 976 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); |
975 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); | 977 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); |
@@ -1172,6 +1174,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
1172 | result.PopPre(scg, errorAt); | 1174 | result.PopPre(scg, errorAt); |
1173 | left.PushVal(scg, errorAt, tokenTypeStr); | 1175 | left.PushVal(scg, errorAt, tokenTypeStr); |
1174 | right.PushVal(scg, errorAt, tokenTypeStr); | 1176 | right.PushVal(scg, errorAt, tokenTypeStr); |
1177 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
1175 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 1178 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
1176 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); | 1179 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); |
1177 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); | 1180 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); |
@@ -1183,6 +1186,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
1183 | result.PopPre(scg, errorAt); | 1186 | result.PopPre(scg, errorAt); |
1184 | left.PushVal(scg, errorAt, tokenTypeStr); | 1187 | left.PushVal(scg, errorAt, tokenTypeStr); |
1185 | right.PushVal(scg, errorAt, tokenTypeStr); | 1188 | right.PushVal(scg, errorAt, tokenTypeStr); |
1189 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
1186 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 1190 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
1187 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); | 1191 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); |
1188 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); | 1192 | scg.ilGen.Emit(errorAt, OpCodes.Ceq); |
@@ -1196,6 +1200,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
1196 | result.PopPre(scg, errorAt); | 1200 | result.PopPre(scg, errorAt); |
1197 | left.PushVal(scg, errorAt, tokenTypeStr); | 1201 | left.PushVal(scg, errorAt, tokenTypeStr); |
1198 | right.PushVal(scg, errorAt, tokenTypeStr); | 1202 | right.PushVal(scg, errorAt, tokenTypeStr); |
1203 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
1199 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 1204 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
1200 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); | 1205 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); |
1201 | scg.ilGen.Emit(errorAt, OpCodes.Clt); | 1206 | scg.ilGen.Emit(errorAt, OpCodes.Clt); |
@@ -1207,6 +1212,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
1207 | result.PopPre(scg, errorAt); | 1212 | result.PopPre(scg, errorAt); |
1208 | left.PushVal(scg, errorAt, tokenTypeStr); | 1213 | left.PushVal(scg, errorAt, tokenTypeStr); |
1209 | right.PushVal(scg, errorAt, tokenTypeStr); | 1214 | right.PushVal(scg, errorAt, tokenTypeStr); |
1215 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
1210 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 1216 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
1211 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_1); | 1217 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_1); |
1212 | scg.ilGen.Emit(errorAt, OpCodes.Clt); | 1218 | scg.ilGen.Emit(errorAt, OpCodes.Clt); |
@@ -1218,6 +1224,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
1218 | result.PopPre(scg, errorAt); | 1224 | result.PopPre(scg, errorAt); |
1219 | left.PushVal(scg, errorAt, tokenTypeStr); | 1225 | left.PushVal(scg, errorAt, tokenTypeStr); |
1220 | right.PushVal(scg, errorAt, tokenTypeStr); | 1226 | right.PushVal(scg, errorAt, tokenTypeStr); |
1227 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
1221 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 1228 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
1222 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); | 1229 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_0); |
1223 | scg.ilGen.Emit(errorAt, OpCodes.Cgt); | 1230 | scg.ilGen.Emit(errorAt, OpCodes.Cgt); |
@@ -1229,6 +1236,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
1229 | result.PopPre(scg, errorAt); | 1236 | result.PopPre(scg, errorAt); |
1230 | left.PushVal(scg, errorAt, tokenTypeStr); | 1237 | left.PushVal(scg, errorAt, tokenTypeStr); |
1231 | right.PushVal(scg, errorAt, tokenTypeStr); | 1238 | right.PushVal(scg, errorAt, tokenTypeStr); |
1239 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4, (int)StringComparison.Ordinal); | ||
1232 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); | 1240 | scg.ilGen.Emit(errorAt, OpCodes.Call, stringCmpStringMethInfo); |
1233 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_M1); | 1241 | scg.ilGen.Emit(errorAt, OpCodes.Ldc_I4_M1); |
1234 | scg.ilGen.Emit(errorAt, OpCodes.Cgt); | 1242 | scg.ilGen.Emit(errorAt, OpCodes.Cgt); |