Mercurial > hg-old > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
345:7416c3f9c321 | 346:a82c55070624 |
---|---|
32 | 32 |
33 #include "lwasm.h" | 33 #include "lwasm.h" |
34 #include "input.h" | 34 #include "input.h" |
35 #include "instab.h" | 35 #include "instab.h" |
36 | 36 |
37 PARSEFUNC(pseudo_macro_parse) | 37 PARSEFUNC(pseudo_parse_macro) |
38 { | 38 { |
39 macrotab_t *m; | 39 macrotab_t *m; |
40 | |
41 l -> len = 0; | |
40 | 42 |
41 if (as -> skipcond) | 43 if (as -> skipcond) |
42 { | 44 { |
43 as -> skipmacro = 1; | 45 as -> skipmacro = 1; |
44 return; | 46 return; |
78 (*p)++; | 80 (*p)++; |
79 | 81 |
80 as -> inmacro = 1; | 82 as -> inmacro = 1; |
81 } | 83 } |
82 | 84 |
83 PARSEFUNC(pseudo_endm_parse) | 85 PARSEFUNC(pseudo_parse_endm) |
84 { | 86 { |
87 l -> len = 0; | |
88 | |
85 if (as -> skipcond) | 89 if (as -> skipcond) |
86 { | 90 { |
87 as -> skipmacro = 0; | 91 as -> skipmacro = 0; |
88 return; | 92 return; |
89 } | 93 } |