Roberto Ierusalimschy 22 anos atrás
pai
commit
9ec9a012e7
2 arquivos alterados com 4 adições e 7 exclusões
  1. 2 2
      lopcodes.c
  2. 2 5
      lopcodes.h

+ 2 - 2
lopcodes.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lopcodes.c,v 1.23 2003/05/13 20:15:59 roberto Exp roberto $
+** $Id: lopcodes.c,v 1.24 2003/05/14 12:09:12 roberto Exp roberto $
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
 
 
@@ -16,7 +16,7 @@
 
 
 #ifdef LUA_OPNAMES
 #ifdef LUA_OPNAMES
 
 
-const char *const luaP_opnames[] = {
+const char *const luaP_opnames[NUM_OPCODES] = {
   "MOVE",
   "MOVE",
   "LOADK",
   "LOADK",
   "LOADBOOL",
   "LOADBOOL",

+ 2 - 5
lopcodes.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lopcodes.h,v 1.103 2003/05/13 20:15:59 roberto Exp roberto $
+** $Id: lopcodes.h,v 1.104 2003/05/14 12:09:12 roberto Exp roberto $
 ** Opcodes for Lua virtual machine
 ** Opcodes for Lua virtual machine
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -230,10 +230,7 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES];
 #define testTMode(m)	(luaP_opmodes[m] & (1 << 7))
 #define testTMode(m)	(luaP_opmodes[m] & (1 << 7))
 
 
 
 
-#ifdef LUA_OPNAMES
-extern const char *const luaP_opnames[];  /* opcode names */
-#endif
-
+extern const char *const luaP_opnames[NUM_OPCODES];  /* opcode names */
 
 
 
 
 /* number of list items to accumulate before a SETLIST instruction */
 /* number of list items to accumulate before a SETLIST instruction */