diff options
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: $ | 2 | ** $Id: lcode.h,v 1.1 2000/02/22 13:31:19 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 | */ |
@@ -9,11 +9,29 @@ | |||
9 | 9 | ||
10 | #include "llex.h" | 10 | #include "llex.h" |
11 | #include "lobject.h" | 11 | #include "lobject.h" |
12 | #include "lopcodes.h" | ||
13 | #include "lparser.h" | ||
12 | 14 | ||
13 | 15 | ||
16 | void luaK_error (LexState *ls, const char *msg); | ||
14 | int luaK_primitivecode (LexState *ls, Instruction i); | 17 | int luaK_primitivecode (LexState *ls, Instruction i); |
15 | int luaK_code (LexState *ls, Instruction i); | 18 | int luaK_code (LexState *ls, Instruction i); |
16 | void luaK_fixjump (LexState *ls, int pc, int dest); | 19 | void luaK_fixjump (LexState *ls, int pc, int dest); |
20 | void luaK_deltastack (LexState *ls, int delta); | ||
21 | int luaK_0 (LexState *ls, OpCode op, int delta); | ||
22 | int luaK_U (LexState *ls, OpCode op, int u, int delta); | ||
23 | int luaK_S (LexState *ls, OpCode op, int s, int delta); | ||
24 | int luaK_AB (LexState *ls, OpCode op, int a, int b, int delta); | ||
25 | int luaK_kstr (LexState *ls, int c); | ||
26 | int luaK_number (LexState *ls, real f); | ||
27 | int luaK_adjuststack (LexState *ls, int n); | ||
28 | int luaK_iscall (LexState *ls, int pc); | ||
29 | void luaK_setcallreturns (LexState *ls, int pc, int nresults); | ||
30 | void luaK_2stack (LexState *ls, expdesc *var); | ||
31 | void luaK_storevar (LexState *ls, const expdesc *var); | ||
32 | void luaK_prefix (LexState *ls, int op, expdesc *v); | ||
33 | void luaK_infix (LexState *ls, expdesc *v); | ||
34 | void luaK_posfix (LexState *ls, int op, expdesc *v1, expdesc *v2); | ||
17 | 35 | ||
18 | 36 | ||
19 | #endif | 37 | #endif |