comparison 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
comparison
equal deleted inserted replaced
206:080bb67d84f2 207:07e1fac76321
81 PRAGMA_IMPORTUNDEFEXPORT = 0x0010, // imports symbol if undefined upon export 81 PRAGMA_IMPORTUNDEFEXPORT = 0x0010, // imports symbol if undefined upon export
82 PRAGMA_PCASPCR = 0x0020, // treats ,PC as ,PCR instead of constant offset 82 PRAGMA_PCASPCR = 0x0020, // treats ,PC as ,PCR instead of constant offset
83 PRAGMA_SHADOW = 0x0040, // allow macros to shadow builtin operations 83 PRAGMA_SHADOW = 0x0040, // allow macros to shadow builtin operations
84 PRAGMA_NOLIST = 0x0080, // don't show line in listing 84 PRAGMA_NOLIST = 0x0080, // don't show line in listing
85 PRAGMA_AUTOBRANCHLENGTH = 0x0100, // automatically select proper length for relative branches 85 PRAGMA_AUTOBRANCHLENGTH = 0x0100, // automatically select proper length for relative branches
86 PRAGMA_EXPORT = 0x0200 // export symbols by default, unless local 86 PRAGMA_EXPORT = 0x0200, // export symbols by default, unless local
87 PRAGMA_SYMBOLNOCASE = 0x400 // symbols defined under this pragma are matched case insensitively
87 }; 88 };
88 89
89 90
90 enum 91 enum
91 { 92 {
192 enum 193 enum
193 { 194 {
194 symbol_flag_set = 1, // symbol was used with "set" 195 symbol_flag_set = 1, // symbol was used with "set"
195 symbol_flag_nocheck = 2, // do not check symbol characters 196 symbol_flag_nocheck = 2, // do not check symbol characters
196 symbol_flag_nolist = 4, // no not show symbol in symbol table 197 symbol_flag_nolist = 4, // no not show symbol in symbol table
198 symbol_flag_nocase = 8, // do not match case of symbol
197 symbol_flag_none = 0 // no flags 199 symbol_flag_none = 0 // no flags
198 }; 200 };
199 201
200 struct symtabe 202 struct symtabe
201 { 203 {