+2002-07-04 Miguel de Icaza <miguel@ximian.com>
+
+ * cs-tokenizer.cs (define): We also have to track locally the
+ defines. AllDefines is just used for the Conditional Attribute,
+ but we also need the local defines for the current source code.
+
2002-07-03 Miguel de Icaza <miguel@ximian.com>
* statement.cs (While, For, Do): These loops can exit through a
* namespace.cs: Use Report.Error instead of GenericParser.error
-
2002-06-22 Miguel de Icaza <miguel@ximian.com>
* class.cs (TypeContainer.AddMethod, TypeContainer.AddIndexer,
\r
void define (string def)\r
{\r
- if (RootContext.AllDefines.Contains (def))\r
+ if (!RootContext.AllDefines.Contains (def)){\r
+ RootContext.AllDefines [def] = true;\r
+ }\r
+ if (defines.Contains (def))\r
return;\r
- RootContext.AllDefines [def] = true;\r
+ defines [def] = true;\r
}\r
\r
public Tokenizer (System.IO.Stream input, string fname, ArrayList defs)\r