Showing the changes to src/lcode.h (1 of 75 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 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 $ | |
| 3 | 3 | ** Code generator for Lua |
| 4 | 4 | ** See Copyright Notice in lua.h |
| 5 | 5 | */ |
| @@ -41,6 +41,8 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_NOUNOPR } UnOpr; · 35 unmodified lines | ||
| 41 | 41 | |
| 42 | 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 | 46 | int luaK_code (FuncState *fs, Instruction i, int line); |
| 45 | 47 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
| 46 | 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); · 13 unmodified lines | ||
| 60 | 62 | void luaK_goiftrue (FuncState *fs, expdesc *e); |
| 61 | 63 | void luaK_goiffalse (FuncState *fs, expdesc *e); |
| 62 | 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 | 67 | int luaK_jump (FuncState *fs); |
| 65 | 68 | void luaK_patchlist (FuncState *fs, int list, int target); |
| 66 | 69 | void luaK_patchtohere (FuncState *fs, int list); |