Mercurial > hg-old > index.cgi
comparison lwasm/pragma.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 |
comparison
equal
deleted
inserted
replaced
235:aa0056ca7319 | 236:a58f49a77441 |
---|---|
115 } | 115 } |
116 else if (!strcasecmp(pragma, "noimportundefexport")) | 116 else if (!strcasecmp(pragma, "noimportundefexport")) |
117 { | 117 { |
118 as -> pragmas &= ~PRAGMA_IMPORTUNDEFEXPORT; | 118 as -> pragmas &= ~PRAGMA_IMPORTUNDEFEXPORT; |
119 } | 119 } |
120 else if (!strcasecmp(pragma, "dollarnotlocal") || !strcasecmp(pragma, "nodollarlocal")) | |
121 { | |
122 as -> pragmas |= PRAGMA_DOLLARNOTLOCAL; | |
123 } | |
124 else if (!strcasecmp(pragma, "dollarlocal") || !strcasecmp(pragma, "nodollarnotlocal")) | |
125 { | |
126 as -> pragmas &= ~PRAGMA_DOLLARNOTLOCAL; | |
127 } | |
120 else | 128 else |
121 { | 129 { |
122 if (error) | 130 if (error) |
123 { | 131 { |
124 register_error(as, cl, 1, "Unrecognized pragma"); | 132 register_error(as, cl, 1, "Unrecognized pragma"); |