diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-17 10:09:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-17 10:09:46 -0300 |
commit | 2c8e28d75a09fb6de3c3b16a64561a0103866cea (patch) | |
tree | f7adc9c14f45e3602390f74cc432be2fc6efb37d /lcode.h | |
parent | 4fb8e93c36f3a38bd5041650361d820898122532 (diff) | |
download | lua-2c8e28d75a09fb6de3c3b16a64561a0103866cea.tar.gz lua-2c8e28d75a09fb6de3c3b16a64561a0103866cea.tar.bz2 lua-2c8e28d75a09fb6de3c3b16a64561a0103866cea.zip |
small changes
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.7 2000/03/13 20:37:16 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.8 2000/03/15 20:50:33 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,13 +13,11 @@ | |||
13 | #include "lparser.h" | 13 | #include "lparser.h" |
14 | 14 | ||
15 | 15 | ||
16 | #define luaK_0(ls,o,d) luaK_code(ls, CREATE_0(o), d) | ||
17 | #define luaK_U(ls,o,u,d) luaK_code(ls, CREATE_U(o,u), d) | ||
18 | #define luaK_S(ls,o,s,d) luaK_code(ls, CREATE_S(o,s), d) | ||
19 | #define luaK_AB(ls,o,a,b,d) luaK_code(ls, CREATE_AB(o,a,b), d) | ||
20 | |||
21 | |||
22 | void luaK_error (LexState *ls, const char *msg); | 16 | void luaK_error (LexState *ls, const char *msg); |
17 | int luaK_0(FuncState *fs, OpCode o, int d); | ||
18 | int luaK_U(FuncState *fs, OpCode o, int u, int d); | ||
19 | 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_code (FuncState *fs, Instruction i, int delta); | 21 | int luaK_code (FuncState *fs, Instruction i, int delta); |
24 | void luaK_retcode (FuncState *fs, int nlocals, int nexps); | 22 | void luaK_retcode (FuncState *fs, int nlocals, int nexps); |
25 | void luaK_fixjump (FuncState *fs, int pc, int dest); | 23 | void luaK_fixjump (FuncState *fs, int pc, int dest); |