* expression.cs (Binary.Emit.GreatherThanOrEqual): Fix the code
generation for >=, as spotted by Paolo, bug 48679.
Patch from David Waite.
* cs-tokenizer.cs: Add handling for #pragma.
svn path=/trunk/mcs/; revision=18729
2003-10-07 Miguel de Icaza <miguel@ximian.com>
+ * expression.cs (Binary.Emit.GreatherThanOrEqual): Fix the code
+ generation for >=, as spotted by Paolo, bug 48679.
+ Patch from David Waite.
+
+ * cs-tokenizer.cs: Add handling for #pragma.
+
* cs-parser.jay: Allow for both yield and yield return in the
syntax. The anti-cobolization of C# fight will go on!
// The first group of pre-processing instructions is always processed\r
//\r
switch (cmd){\r
+ case "pragma":\r
+ if (RootContext.V2)\r
+ return true;\r
+ break;\r
+ \r
case "line":\r
if (!PreProcessLine (arg))\r
Report.Error (\r
" -warnaserror[+|-] Treat warnings as errors\n" +
" -warn:LEVEL Sets warning level (the highest is 4, the default)\n" +
" -v Verbose parsing (for debugging the parser)\n" +
+ " -2 Enables experimental C# features\n" +
"\n" +
"Resources:\n" +
" -linkresource:FILE[,ID] Links FILE as a resource\n" +
return true;
case "/v2":
+ case "/2":
SetupV2 ();
return true;
else
ig.Emit (OpCodes.Clt);
- ig.Emit (OpCodes.Ldc_I4_1);
+ ig.Emit (OpCodes.Ldc_I4_0);
- opcode = OpCodes.Sub;
+ opcode = OpCodes.Ceq;
break;
case Operator.BitwiseOr: