From 9ec9a012e780cd9d55382134fa955e96a03f7e49 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 14 May 2003 18:09:53 -0300 Subject: [PATCH] details --- lopcodes.c | 4 ++-- lopcodes.h | 7 ++----- 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 @@ /* -** $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", diff --git a/lopcodes.h b/lopcodes.h index 14b0c2e4..a7f22d29 100644 --- a/lopcodes.h +++ b/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 */