aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-07-09 12:50:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-07-09 12:50:51 -0300
commitb08c9079c5ab026f07942fb898f791325d270177 (patch)
tree8252b2f5b1eb75abc678ab4deead8faf218b9322 /lopcodes.h
parent06e08c6d05b1346df935634be395f4d86035e3ea (diff)
downloadlua-b08c9079c5ab026f07942fb898f791325d270177.tar.gz
lua-b08c9079c5ab026f07942fb898f791325d270177.tar.bz2
lua-b08c9079c5ab026f07942fb898f791325d270177.zip
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.
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 821bb196..d7b5dfe0 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.192 2018/06/08 19:07:27 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.194 2018/06/26 18:00:55 roberto Exp $
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*/
@@ -358,9 +358,6 @@ LUAI_DDEC(const lu_byte luaP_opmodes[NUM_OPCODES];)
358#define opmode(ot,it,t,a,m) (((ot)<<6) | ((it)<<5) | ((t)<<4) | ((a)<<3) | (m)) 358#define opmode(ot,it,t,a,m) (((ot)<<6) | ((it)<<5) | ((t)<<4) | ((a)<<3) | (m))
359 359
360 360
361LUAI_DDEC(const char *const luaP_opnames[NUM_OPCODES+1];) /* opcode names */
362
363
364/* number of list items to accumulate before a SETLIST instruction */ 361/* number of list items to accumulate before a SETLIST instruction */
365#define LFIELDS_PER_FLUSH 50 362#define LFIELDS_PER_FLUSH 50
366 363