Mercurial > hg > index.cgi
diff lwasm/lwasm.h @ 207:07e1fac76321
Added pragma to allow non case sensitive symbols
Added "nosymbolcase" and "symbolnocase" pragmas to cause symbols defined
while the pragma is in effect to be treated as case insensitive. Also
documented the new pragma.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sat, 09 Jun 2012 15:47:22 -0600 |
parents | 080bb67d84f2 |
children | 52d9dd71f555 |
line wrap: on
line diff
--- a/lwasm/lwasm.h Thu May 24 17:28:15 2012 -0600 +++ b/lwasm/lwasm.h Sat Jun 09 15:47:22 2012 -0600 @@ -83,7 +83,8 @@ PRAGMA_SHADOW = 0x0040, // allow macros to shadow builtin operations PRAGMA_NOLIST = 0x0080, // don't show line in listing PRAGMA_AUTOBRANCHLENGTH = 0x0100, // automatically select proper length for relative branches - PRAGMA_EXPORT = 0x0200 // export symbols by default, unless local + PRAGMA_EXPORT = 0x0200, // export symbols by default, unless local + PRAGMA_SYMBOLNOCASE = 0x400 // symbols defined under this pragma are matched case insensitively }; @@ -194,6 +195,7 @@ symbol_flag_set = 1, // symbol was used with "set" symbol_flag_nocheck = 2, // do not check symbol characters symbol_flag_nolist = 4, // no not show symbol in symbol table + symbol_flag_nocase = 8, // do not match case of symbol symbol_flag_none = 0 // no flags };