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.66 2017/09/13 19:50:08 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.67 2017/09/28 16:53:29 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 | */ |
| @@ -37,6 +37,9 @@ typedef enum BinOpr { | |||
| 37 | } BinOpr; | 37 | } BinOpr; |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | #define luaK_codeABC(fs,o,a,b,c) luaK_codeABCk(fs,o,a,b,c,0) | ||
| 41 | |||
| 42 | |||
| 40 | typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | 43 | typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; |
| 41 | 44 | ||
| 42 | 45 | ||
| @@ -50,7 +53,8 @@ typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | |||
| 50 | 53 | ||
| 51 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 54 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
| 52 | LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); | 55 | LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); |
| 53 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 56 | LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, |
| 57 | int B, int C, int k); | ||
| 54 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 58 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
| 55 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); | 59 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
| 56 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); | 60 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); |
