diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-10 16:50:47 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-10 16:50:47 -0300 |
commit | daf09c476fe375d8a9a47bc1294a1cd430290226 (patch) | |
tree | 1d4ecc2d4001f2195168eaeafb257c9af8b94793 /lcode.c | |
parent | e238efc5367a8d88757dd84df0683e1d8d9f9211 (diff) | |
download | lua-daf09c476fe375d8a9a47bc1294a1cd430290226.tar.gz lua-daf09c476fe375d8a9a47bc1294a1cd430290226.tar.bz2 lua-daf09c476fe375d8a9a47bc1294a1cd430290226.zip |
still better error messages
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 1.45 2000/08/09 14:49:13 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 1.46 2000/08/09 19:16:57 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -333,7 +333,6 @@ void luaK_tostack (LexState *ls, expdesc *v, int onlyone) { | |||
333 | luaK_deltastack(fs, -1); /* next PUSHes may be skipped */ | 333 | luaK_deltastack(fs, -1); /* next PUSHes may be skipped */ |
334 | } | 334 | } |
335 | p_nil = code_label(fs, OP_PUSHNILJMP, 0); | 335 | p_nil = code_label(fs, OP_PUSHNILJMP, 0); |
336 | luaK_deltastack(fs, -1); /* next PUSH is skipped */ | ||
337 | p_1 = code_label(fs, OP_PUSHINT, 1); | 336 | p_1 = code_label(fs, OP_PUSHINT, 1); |
338 | luaK_patchlist(fs, j, luaK_getlabel(fs)); | 337 | luaK_patchlist(fs, j, luaK_getlabel(fs)); |
339 | } | 338 | } |
@@ -690,7 +689,7 @@ const struct OpProperties luaK_opproperties[NUM_OPCODES] = { | |||
690 | {iS, 0, 1}, /* OP_JMPONT */ | 689 | {iS, 0, 1}, /* OP_JMPONT */ |
691 | {iS, 0, 1}, /* OP_JMPONF */ | 690 | {iS, 0, 1}, /* OP_JMPONF */ |
692 | {iS, 0, 0}, /* OP_JMP */ | 691 | {iS, 0, 0}, /* OP_JMP */ |
693 | {iO, 1, 0}, /* OP_PUSHNILJMP */ | 692 | {iO, 0, 0}, /* OP_PUSHNILJMP */ |
694 | {iS, 0, 0}, /* OP_FORPREP */ | 693 | {iS, 0, 0}, /* OP_FORPREP */ |
695 | {iS, 0, 3}, /* OP_FORLOOP */ | 694 | {iS, 0, 3}, /* OP_FORLOOP */ |
696 | {iS, 3, 0}, /* OP_LFORPREP */ | 695 | {iS, 3, 0}, /* OP_LFORPREP */ |