summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lopcodes.c4
-rw-r--r--lopcodes.h7
2 files changed, 4 insertions, 7 deletions
diff --git a/lopcodes.c b/lopcodes.c
index e6a592d9..ad903c10 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -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
19const char *const luaP_opnames[] = { 19const char *const luaP_opnames[NUM_OPCODES] = {
20 "MOVE", 20 "MOVE",
21 "LOADK", 21 "LOADK",
22 "LOADBOOL", 22 "LOADBOOL",
diff --git a/lopcodes.h b/lopcodes.h
index 14b0c2e4..a7f22d29 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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 233extern const char *const luaP_opnames[NUM_OPCODES]; /* opcode names */
234extern 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 */