mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
still better error messages
This commit is contained in:
parent
e238efc536
commit
daf09c476f
5 changed files with 67 additions and 66 deletions
5
lcode.c
5
lcode.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lcode.c,v 1.45 2000/08/09 14:49:13 roberto Exp roberto $
|
||||
** $Id: lcode.c,v 1.46 2000/08/09 19:16:57 roberto Exp roberto $
|
||||
** Code generator for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -333,7 +333,6 @@ void luaK_tostack (LexState *ls, expdesc *v, int onlyone) {
|
|||
luaK_deltastack(fs, -1); /* next PUSHes may be skipped */
|
||||
}
|
||||
p_nil = code_label(fs, OP_PUSHNILJMP, 0);
|
||||
luaK_deltastack(fs, -1); /* next PUSH is skipped */
|
||||
p_1 = code_label(fs, OP_PUSHINT, 1);
|
||||
luaK_patchlist(fs, j, luaK_getlabel(fs));
|
||||
}
|
||||
|
|
@ -690,7 +689,7 @@ const struct OpProperties luaK_opproperties[NUM_OPCODES] = {
|
|||
{iS, 0, 1}, /* OP_JMPONT */
|
||||
{iS, 0, 1}, /* OP_JMPONF */
|
||||
{iS, 0, 0}, /* OP_JMP */
|
||||
{iO, 1, 0}, /* OP_PUSHNILJMP */
|
||||
{iO, 0, 0}, /* OP_PUSHNILJMP */
|
||||
{iS, 0, 0}, /* OP_FORPREP */
|
||||
{iS, 0, 3}, /* OP_FORLOOP */
|
||||
{iS, 3, 0}, /* OP_LFORPREP */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue