diff options
-rw-r--r-- | lopcodes.c | 4 | ||||
-rw-r--r-- | lopcodes.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id:$ | 2 | ** $Id: lopcodes.c,v 1.2 2001/07/03 17:02:02 roberto Exp roberto $ |
3 | ** extracted automatically from lopcodes.h by mkprint.lua | 3 | ** extracted automatically from lopcodes.h by mkprint.lua |
4 | ** DO NOT EDIT | 4 | ** DO NOT EDIT |
5 | ** See Copyright Notice in lua.h | 5 | ** See Copyright Notice in lua.h |
@@ -62,7 +62,7 @@ const l_char *const luaP_opnames[] = { | |||
62 | ((b)<<OpModeBreg) | ((c)<<OpModeCreg) | \ | 62 | ((b)<<OpModeBreg) | ((c)<<OpModeCreg) | \ |
63 | ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m)) | 63 | ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m)) |
64 | 64 | ||
65 | const lu_byte luaP_opmodes[] = { | 65 | const lu_byte luaP_opmodes[NUM_OPCODES] = { |
66 | /* T _ B C sA K mode opcode */ | 66 | /* T _ B C sA K mode opcode */ |
67 | opmode(0,0,1,0, 1,0,iABC) /* OP_MOVE */ | 67 | opmode(0,0,1,0, 1,0,iABC) /* OP_MOVE */ |
68 | ,opmode(0,0,0,0, 1,1,iABc) /* OP_LOADK */ | 68 | ,opmode(0,0,0,0, 1,1,iABc) /* OP_LOADK */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.77 2001/07/03 17:01:34 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.78 2001/07/24 17:19:07 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -213,7 +213,7 @@ enum OpModeMask { | |||
213 | OpModeT /* operator is a test */ | 213 | OpModeT /* operator is a test */ |
214 | }; | 214 | }; |
215 | 215 | ||
216 | extern const lu_byte luaP_opmodes[]; | 216 | extern const lu_byte luaP_opmodes[NUM_OPCODES]; |
217 | 217 | ||
218 | #define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3)) | 218 | #define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3)) |
219 | #define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) | 219 | #define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) |