History

Lua 5.1-work1

Lua Team committed 22 years ago

Commit 4014ed71 parent ad2eda775 files · +2140 −2612Browse files

Showing the changes to src/lcode.h (1 of 75 files). Show all

Unified · Split

src/lcode.h+5−2
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lcode.h,v 1.38 2002/12/11 12:34:22 roberto Exp $
2+** $Id: lcode.h,v 1.39 2004/05/31 18:51:50 roberto Exp $
33 ** Code generator for Lua
44 ** See Copyright Notice in lua.h
55 */
@@ -41,6 +41,8 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_NOUNOPR } UnOpr; · 35 unmodified lines
4141
4242 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx)
4343
44+#define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET)
45+
4446 int luaK_code (FuncState *fs, Instruction i, int line);
4547 int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
4648 int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
@@ -60,7 +62,8 @@ void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); · 13 unmodified lines
6062 void luaK_goiftrue (FuncState *fs, expdesc *e);
6163 void luaK_goiffalse (FuncState *fs, expdesc *e);
6264 void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e);
63−void luaK_setcallreturns (FuncState *fs, expdesc *var, int nresults);
65+void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
66+void luaK_setoneret (FuncState *fs, expdesc *e);
6467 int luaK_jump (FuncState *fs);
6568 void luaK_patchlist (FuncState *fs, int list, int target);
6669 void luaK_patchtohere (FuncState *fs, int list);