Mercurial > hg > index.cgi
comparison lwasm/pragma.c @ 407:c501b3ce39c8
Make "pragma" and "*pragma/opt" fully equivalent
Make "pragma" and "opt" actually equivalent in the face of the cycle
counting scheme. There was some special casing in the *pragma parser that
wasn't duplicated to the pragma parser.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 03 Mar 2016 21:17:48 -0700 |
parents | 6153cb49403c |
children | cad5937314cb |
comparison
equal
deleted
inserted
replaced
406:4411a6123716 | 407:c501b3ce39c8 |
---|---|
138 { | 138 { |
139 lwasm_register_error(as, l, E_PRAGMA_UNRECOGNIZED); | 139 lwasm_register_error(as, l, E_PRAGMA_UNRECOGNIZED); |
140 } | 140 } |
141 if (as -> pragmas & PRAGMA_NOLIST) | 141 if (as -> pragmas & PRAGMA_NOLIST) |
142 l -> pragmas |= PRAGMA_NOLIST; | 142 l -> pragmas |= PRAGMA_NOLIST; |
143 if (as->pragmas & PRAGMA_CC) | |
144 { | |
145 l->pragmas |= PRAGMA_CC; | |
146 as->pragmas &= ~PRAGMA_CC; | |
147 } | |
143 lw_free(ps); | 148 lw_free(ps); |
144 } | 149 } |
145 | 150 |
146 PARSEFUNC(pseudo_parse_starpragma) | 151 PARSEFUNC(pseudo_parse_starpragma) |
147 { | 152 { |