comparison lwasm/pseudo.c @ 217:f87c86668d6b

Fix handling of comments on ELSE lines
author William Astle <lost@l-w.ca>
date Sun, 10 Jun 2012 14:14:43 -0600
parents fa835b780ffb
children b0c9df865b25
comparison
equal deleted inserted replaced
216:398773d7e504 217:f87c86668d6b
1152 } 1152 }
1153 1153
1154 PARSEFUNC(pseudo_parse_else) 1154 PARSEFUNC(pseudo_parse_else)
1155 { 1155 {
1156 l -> len = 0; 1156 l -> len = 0;
1157 skip_operand(p);
1157 1158
1158 if (as -> skipmacro) 1159 if (as -> skipmacro)
1159 return; 1160 return;
1160 1161
1161 if (as -> skipcond) 1162 if (as -> skipcond)
1162 { 1163 {
1163 if (as -> skipcount == 1) 1164 if (as -> skipcount == 1)
1164 { 1165 {
1165 as -> skipcount = 0; 1166 as -> skipcount = 0;
1166 as -> skipcond = 0; 1167 as -> skipcond = 0;
1167 skip_operand(p);
1168 } 1168 }
1169 return; 1169 return;
1170 } 1170 }
1171 as -> skipcond = 1; 1171 as -> skipcond = 1;
1172 as -> skipcount = 1; 1172 as -> skipcount = 1;
1173 skip_operand(p);
1174 } 1173 }
1175 1174
1176 PARSEFUNC(pseudo_parse_ifdef) 1175 PARSEFUNC(pseudo_parse_ifdef)
1177 { 1176 {
1178 char *sym; 1177 char *sym;