diff options
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.32 2002/04/24 20:07:46 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.33 2002/05/07 17:36:56 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,7 @@ 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 | int luaK_code (FuncState *fs, Instruction i, int line); | ||
44 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 45 | int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
45 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 46 | int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
46 | void luaK_nil (FuncState *fs, int from, int n); | 47 | void luaK_nil (FuncState *fs, int from, int n); |
@@ -54,7 +55,9 @@ void luaK_exp2val (FuncState *fs, expdesc *e); | |||
54 | int luaK_exp2RK (FuncState *fs, expdesc *e); | 55 | int luaK_exp2RK (FuncState *fs, expdesc *e); |
55 | void luaK_self (FuncState *fs, expdesc *e, expdesc *key); | 56 | void luaK_self (FuncState *fs, expdesc *e, expdesc *key); |
56 | void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); | 57 | void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); |
58 | void luaK_moveexp (expdesc *e, int offset); | ||
57 | void luaK_goiftrue (FuncState *fs, expdesc *e); | 59 | void luaK_goiftrue (FuncState *fs, expdesc *e); |
60 | void luaK_goiffalse (FuncState *fs, expdesc *e); | ||
58 | void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); | 61 | void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); |
59 | void luaK_setcallreturns (FuncState *fs, expdesc *var, int nresults); | 62 | void luaK_setcallreturns (FuncState *fs, expdesc *var, int nresults); |
60 | int luaK_jump (FuncState *fs); | 63 | int luaK_jump (FuncState *fs); |