diff options
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.37 2002/06/12 19:16:00 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.38 2002/12/11 12:34:22 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 | */ |
@@ -41,6 +41,8 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_NOUNOPR } UnOpr; | |||
41 | 41 | ||
42 | #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) | 42 | #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) |
43 | 43 | ||
44 | #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) | ||
45 | |||
44 | int luaK_code (FuncState *fs, Instruction i, int line); | 46 | int luaK_code (FuncState *fs, Instruction i, int line); |
45 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 47 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
46 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 48 | 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); | |||
60 | void luaK_goiftrue (FuncState *fs, expdesc *e); | 62 | void luaK_goiftrue (FuncState *fs, expdesc *e); |
61 | void luaK_goiffalse (FuncState *fs, expdesc *e); | 63 | void luaK_goiffalse (FuncState *fs, expdesc *e); |
62 | void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); | 64 | 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); | ||
64 | int luaK_jump (FuncState *fs); | 67 | int luaK_jump (FuncState *fs); |
65 | void luaK_patchlist (FuncState *fs, int list, int target); | 68 | void luaK_patchlist (FuncState *fs, int list, int target); |
66 | void luaK_patchtohere (FuncState *fs, int list); | 69 | void luaK_patchtohere (FuncState *fs, int list); |