Mercurial > hg-old > index.cgi
diff lwasm/macro.c @ 346:a82c55070624
Added expression parsing infrastructure and misc fixes
author | lost@starbug |
---|---|
date | Sat, 27 Mar 2010 19:04:03 -0600 |
parents | 7416c3f9c321 |
children |
line wrap: on
line diff
--- a/lwasm/macro.c Thu Mar 25 23:17:54 2010 -0600 +++ b/lwasm/macro.c Sat Mar 27 19:04:03 2010 -0600 @@ -34,10 +34,12 @@ #include "input.h" #include "instab.h" -PARSEFUNC(pseudo_macro_parse) +PARSEFUNC(pseudo_parse_macro) { macrotab_t *m; + l -> len = 0; + if (as -> skipcond) { as -> skipmacro = 1; @@ -80,8 +82,10 @@ as -> inmacro = 1; } -PARSEFUNC(pseudo_endm_parse) +PARSEFUNC(pseudo_parse_endm) { + l -> len = 0; + if (as -> skipcond) { as -> skipmacro = 0;