diff options
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.11 2000/04/07 19:35:20 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.12 2000/04/12 18:47:03 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 | */ |
@@ -20,6 +20,14 @@ | |||
20 | #define NO_JUMP (-1) | 20 | #define NO_JUMP (-1) |
21 | 21 | ||
22 | 22 | ||
23 | enum Mode {iO, iU, iS, iAB}; /* instruction format */ | ||
24 | |||
25 | extern const struct OpProperties { | ||
26 | char mode; | ||
27 | signed char delta; | ||
28 | } luaK_opproperties[]; | ||
29 | |||
30 | |||
23 | void luaK_error (LexState *ls, const char *msg); | 31 | void luaK_error (LexState *ls, const char *msg); |
24 | int luaK_code0 (FuncState *fs, OpCode o); | 32 | int luaK_code0 (FuncState *fs, OpCode o); |
25 | int luaK_code1 (FuncState *fs, OpCode o, int arg1); | 33 | int luaK_code1 (FuncState *fs, OpCode o, int arg1); |