Showing the changes to src/lcode.h (1 of 53 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** $Id: lcode.h,v 1.55 2010/07/02 20:42:40 roberto Exp $ | |
| 2 | +** $Id: lcode.h,v 1.57 2011/04/07 18:14:12 roberto Exp $ | |
| 3 | 3 | ** Code generator for Lua |
| 4 | 4 | ** See Copyright Notice in lua.h |
| 5 | 5 | */ |
| @@ -44,11 +44,9 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; · 38 unmodified lines | ||
| 44 | 44 | |
| 45 | 45 | #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) |
| 46 | 46 | |
| 47 | −#define luaK_codek(fs,reg,k) luaK_codeABxX(fs, OP_LOADK, reg, k) | |
| 48 | − | |
| 49 | 47 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
| 50 | 48 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
| 51 | −LUAI_FUNC int luaK_codeABxX (FuncState *fs, OpCode o, int reg, int k); | |
| 49 | +LUAI_FUNC int luaK_codek (FuncState *fs, int reg, int k); | |
| 52 | 50 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
| 53 | 51 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
| 54 | 52 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); |
| @@ -71,6 +69,7 @@ LUAI_FUNC int luaK_jump (FuncState *fs); · 16 unmodified lines | ||
| 71 | 69 | LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret); |
| 72 | 70 | LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); |
| 73 | 71 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); |
| 72 | +LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level); | |
| 74 | 73 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); |
| 75 | 74 | LUAI_FUNC int luaK_getlabel (FuncState *fs); |
| 76 | 75 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); |