Roberto Ierusalimschy 22 年之前
父節點
當前提交
9ec9a012e7
共有 2 個文件被更改,包括 4 次插入7 次删除
  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
 */
 
@@ -16,7 +16,7 @@
 
 #ifdef LUA_OPNAMES
 
-const char *const luaP_opnames[] = {
+const char *const luaP_opnames[NUM_OPCODES] = {
   "MOVE",
   "LOADK",
   "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
 ** 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))
 
 
-#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 */