Mercurial > hg-old > index.cgi
comparison src/insn_gen.c @ 98:81fc353d4d69
Cleaned up old lwasm_expr_result() function and unused EXPR_* flags
author | lost |
---|---|
date | Sat, 17 Jan 2009 07:12:05 +0000 |
parents | a338d496350e |
children |
comparison
equal
deleted
inserted
replaced
97:2e8dda44027c | 98:81fc353d4d69 |
---|---|
138 | 138 |
139 if (**p == '#') | 139 if (**p == '#') |
140 { | 140 { |
141 lwasm_emitop(as, l, instab[opnum].ops[3]); | 141 lwasm_emitop(as, l, instab[opnum].ops[3]); |
142 (*p)++; | 142 (*p)++; |
143 r = lwasm_expr_result2(as, l, p, EXPR_PASS2CONST | EXPR_BYTE, &rval, 0); | 143 r = lwasm_expr_result2(as, l, p, 0, &rval, 0); |
144 if (r != 0) | 144 if (r != 0) |
145 rval = 0; | 145 rval = 0; |
146 if (r == 1 && as -> passnum == 2) | 146 if (r == 1 && as -> passnum == 2) |
147 register_error(as, l, 2, "Illegal external or intersegment reference"); | 147 register_error(as, l, 2, "Illegal external or intersegment reference"); |
148 lwasm_emit(as, l, rval & 0xff); | 148 lwasm_emit(as, l, rval & 0xff); |
210 if (**p == '#') | 210 if (**p == '#') |
211 { | 211 { |
212 lwasm_emitop(as, l, instab[opnum].ops[0]); | 212 lwasm_emitop(as, l, instab[opnum].ops[0]); |
213 (*p)++; | 213 (*p)++; |
214 | 214 |
215 r = lwasm_expr_result2(as, l, p, EXPR_PASS2CONST | EXPR_BYTE, &rval, 0); | 215 r = lwasm_expr_result2(as, l, p, 0, &rval, 0); |
216 if (r != 0) | 216 if (r != 0) |
217 rval = 0; | 217 rval = 0; |
218 if (r == 1 && as -> passnum == 2) | 218 if (r == 1 && as -> passnum == 2) |
219 register_error(as, l, 2, "Illegal external or intersegment reference"); | 219 register_error(as, l, 2, "Illegal external or intersegment reference"); |
220 | 220 |