Mercurial > hg-old > index.cgi
comparison lwasm/symbol.c @ 236:a58f49a77441
Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
author | lost |
---|---|
date | Fri, 14 Aug 2009 03:22:26 +0000 |
parents | bae1e3ecdce1 |
children | c7a41b4c89b3 |
comparison
equal
deleted
inserted
replaced
235:aa0056ca7319 | 236:a58f49a77441 |
---|---|
83 { | 83 { |
84 register_error(as, l, 1, "Bad symbol: %s", sym); | 84 register_error(as, l, 1, "Bad symbol: %s", sym); |
85 return -1; | 85 return -1; |
86 } | 86 } |
87 // flag local symbols while we're at it... | 87 // flag local symbols while we're at it... |
88 if (*p == '?' || *p == '@' || *p == '$') | 88 if (*p == '?' || *p == '@' || (*p == '$' && !(as -> pragmas & PRAGMA_DOLLARNOTLOCAL))) |
89 scontext = as -> context; | 89 scontext = as -> context; |
90 } | 90 } |
91 | 91 |
92 debug_message(3, "lwasm_register_symbol(): registering '%s' (%d) at %04X; flags=%d", sym, scontext, val, flags); | 92 debug_message(3, "lwasm_register_symbol(): registering '%s' (%d) at %04X; flags=%d", sym, scontext, val, flags); |
93 | 93 |