From 062e809e542ec066986c4e3e054f95e1bfc0cb50 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Nov 2009 17:06:52 -0200 Subject: new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and definitions of non-static variables --- lopcodes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lopcodes.c') diff --git a/lopcodes.c b/lopcodes.c index d8bf6316..4bcd2b6e 100644 --- a/lopcodes.c +++ b/lopcodes.c @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.c,v 1.39 2008/04/02 16:16:06 roberto Exp roberto $ +** $Id: lopcodes.c,v 1.40 2008/10/30 15:39:30 roberto Exp roberto $ ** See Copyright Notice in lua.h */ @@ -13,7 +13,7 @@ /* ORDER OP */ -const char *const luaP_opnames[NUM_OPCODES+1] = { +LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { "MOVE", "LOADK", "LOADBOOL", @@ -60,7 +60,7 @@ const char *const luaP_opnames[NUM_OPCODES+1] = { #define opmode(t,a,b,c,m) (((t)<<7) | ((a)<<6) | ((b)<<4) | ((c)<<2) | (m)) -const lu_byte luaP_opmodes[NUM_OPCODES] = { +LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { /* T A B C mode opcode */ opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */ ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */ -- cgit v1.2.3-55-g6feb