diff options
Diffstat (limited to 'lcode.h')
| -rw-r--r-- | lcode.h | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.h,v 1.8 2000/03/15 20:50:33 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.9 2000/03/17 13:09:46 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 | */ |
| @@ -13,6 +13,9 @@ | |||
| 13 | #include "lparser.h" | 13 | #include "lparser.h" |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | #define NO_JUMP (-1) /* marks end of patch list */ | ||
| 17 | |||
| 18 | |||
| 16 | void luaK_error (LexState *ls, const char *msg); | 19 | void luaK_error (LexState *ls, const char *msg); |
| 17 | int luaK_0(FuncState *fs, OpCode o, int d); | 20 | int luaK_0(FuncState *fs, OpCode o, int d); |
| 18 | int luaK_U(FuncState *fs, OpCode o, int u, int d); | 21 | int luaK_U(FuncState *fs, OpCode o, int u, int d); |
| @@ -20,8 +23,9 @@ int luaK_S(FuncState *fs, OpCode o, int s, int d); | |||
| 20 | int luaK_AB(FuncState *fs, OpCode o, int a, int b, int d); | 23 | int luaK_AB(FuncState *fs, OpCode o, int a, int b, int d); |
| 21 | int luaK_code (FuncState *fs, Instruction i, int delta); | 24 | int luaK_code (FuncState *fs, Instruction i, int delta); |
| 22 | void luaK_retcode (FuncState *fs, int nlocals, int nexps); | 25 | void luaK_retcode (FuncState *fs, int nlocals, int nexps); |
| 23 | void luaK_fixjump (FuncState *fs, int pc, int dest); | 26 | int luaK_jump (FuncState *fs); |
| 24 | void luaK_patchlist (FuncState *fs, int list, int target); | 27 | void luaK_patchlist (FuncState *fs, int list, int target); |
| 28 | void luaK_concat (FuncState *fs, int *l1, int l2); | ||
| 25 | void luaK_goiftrue (FuncState *fs, expdesc *v, int keepvalue); | 29 | void luaK_goiftrue (FuncState *fs, expdesc *v, int keepvalue); |
| 26 | void luaK_goiffalse (FuncState *fs, expdesc *v, int keepvalue); | 30 | void luaK_goiffalse (FuncState *fs, expdesc *v, int keepvalue); |
| 27 | int luaK_getlabel (FuncState *fs); | 31 | int luaK_getlabel (FuncState *fs); |
