Mercurial > hg > index.cgi
changeset 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 | 4411a6123716 |
children | 0af33282b518 |
files | lwasm/pragma.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/pragma.c Thu Mar 03 21:04:39 2016 -0700 +++ b/lwasm/pragma.c Thu Mar 03 21:17:48 2016 -0700 @@ -140,6 +140,11 @@ } if (as -> pragmas & PRAGMA_NOLIST) l -> pragmas |= PRAGMA_NOLIST; + if (as->pragmas & PRAGMA_CC) + { + l->pragmas |= PRAGMA_CC; + as->pragmas &= ~PRAGMA_CC; + } lw_free(ps); }