comparison lwasm/pseudo.c @ 133:3c1a80c2fb95

ifdef sym1|sym2 now works
author lost@l-w.ca
date Fri, 12 Aug 2011 00:03:07 -0600
parents 4cf44ff89b08
children fe117454a1e7
comparison
equal deleted inserted replaced
132:4cf44ff89b08 133:3c1a80c2fb95
1084 1084
1085 s = lookup_symbol(as, l, sym); 1085 s = lookup_symbol(as, l, sym);
1086 1086
1087 lw_free(sym); 1087 lw_free(sym);
1088 1088
1089 if (!s && **p != '|') 1089 if (!s)
1090 { 1090 {
1091 if (**p == '|')
1092 {
1093 (*p)++;
1094 goto again;
1095 }
1091 as -> skipcond = 1; 1096 as -> skipcond = 1;
1092 as -> skipcount = 1; 1097 as -> skipcount = 1;
1093 skip_operand(p); 1098 }
1094 return; 1099 skip_operand(p);
1095 }
1096 (*p)++;
1097 goto again;
1098 } 1100 }
1099 1101
1100 PARSEFUNC(pseudo_parse_ifndef) 1102 PARSEFUNC(pseudo_parse_ifndef)
1101 { 1103 {
1102 char *sym; 1104 char *sym;