diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-27 12:14:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-27 12:14:57 -0300 |
commit | 7afc74ff07907294a2162600023a9c61a64cdbd5 (patch) | |
tree | 9173b9f04c1f5b5b1898f5068b917da93c7167df | |
parent | 022bf2720287dd079e3e575c01ceaabfbb37489b (diff) | |
download | lua-7afc74ff07907294a2162600023a9c61a64cdbd5.tar.gz lua-7afc74ff07907294a2162600023a9c61a64cdbd5.tar.bz2 lua-7afc74ff07907294a2162600023a9c61a64cdbd5.zip |
avoid some warnings from strange compilers
-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))) |