From b08c9079c5ab026f07942fb898f791325d270177 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 9 Jul 2018 12:50:51 -0300 Subject: Opcode names moved to a new header file The array with the names of the opcodes was moved to a header file ('lopnames.h'), as it is not used by the Lua kernel. Files that need that array ('luac.c' and 'ltests.c') include the header file to get a private (static) copy. --- lopcodes.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index 821bb196..d7b5dfe0 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.192 2018/06/08 19:07:27 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.194 2018/06/26 18:00:55 roberto Exp $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -358,9 +358,6 @@ LUAI_DDEC(const lu_byte luaP_opmodes[NUM_OPCODES];) #define opmode(ot,it,t,a,m) (((ot)<<6) | ((it)<<5) | ((t)<<4) | ((a)<<3) | (m)) -LUAI_DDEC(const char *const luaP_opnames[NUM_OPCODES+1];) /* opcode names */ - - /* number of list items to accumulate before a SETLIST instruction */ #define LFIELDS_PER_FLUSH 50 -- cgit v1.2.3-55-g6feb