diff options
-rw-r--r-- | lopcodes.c | 4 | ||||
-rw-r--r-- | lopcodes.h | 7 |
2 files changed, 4 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.c,v 1.23 2003/05/13 20:15:59 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.24 2003/05/14 12:09:12 roberto Exp roberto $ |
3 | ** See Copyright Notice in lua.h | 3 | ** See Copyright Notice in lua.h |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #ifdef LUA_OPNAMES | 17 | #ifdef LUA_OPNAMES |
18 | 18 | ||
19 | const char *const luaP_opnames[] = { | 19 | const char *const luaP_opnames[NUM_OPCODES] = { |
20 | "MOVE", | 20 | "MOVE", |
21 | "LOADK", | 21 | "LOADK", |
22 | "LOADBOOL", | 22 | "LOADBOOL", |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.103 2003/05/13 20:15:59 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.104 2003/05/14 12:09:12 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 | */ |
@@ -230,10 +230,7 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES]; | |||
230 | #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) | 230 | #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) |
231 | 231 | ||
232 | 232 | ||
233 | #ifdef LUA_OPNAMES | 233 | extern const char *const luaP_opnames[NUM_OPCODES]; /* opcode names */ |
234 | extern const char *const luaP_opnames[]; /* opcode names */ | ||
235 | #endif | ||
236 | |||
237 | 234 | ||
238 | 235 | ||
239 | /* number of list items to accumulate before a SETLIST instruction */ | 236 | /* number of list items to accumulate before a SETLIST instruction */ |