# HG changeset patch # User William Astle # Date 1457065068 25200 # Node ID c501b3ce39c828cdef208b443a02b0bf9e1fb5f1 # Parent 4411a612371698bc0a7ffbca056e635c87ca9550 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. diff -r 4411a6123716 -r c501b3ce39c8 lwasm/pragma.c --- 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); }