aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-18 09:51:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-18 09:51:05 -0300
commitb43300c14f562bcdc1050f2c05e52fac3f6c99b7 (patch)
treeb21fb2577e9f40340f22cbe44648a37f8d16f12f /lopcodes.h
parentaf70905246acfad225904b64d027e5b01c7b10eb (diff)
downloadlua-b43300c14f562bcdc1050f2c05e52fac3f6c99b7.tar.gz
lua-b43300c14f562bcdc1050f2c05e52fac3f6c99b7.tar.bz2
lua-b43300c14f562bcdc1050f2c05e52fac3f6c99b7.zip
change in 'LUAI_DDEC' to allow variables to be static in 'onelua'
+ change in 'LUAMOD_API' as opening functions do not need to be global
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 9c447a41..821bb196 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.191 2018/04/04 14:23:41 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.192 2018/06/08 19:07:27 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*/
@@ -339,7 +339,7 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */
339** bit 6: instruction sets 'L->top' for next instruction (when C == 0) 339** bit 6: instruction sets 'L->top' for next instruction (when C == 0)
340*/ 340*/
341 341
342LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; 342LUAI_DDEC(const lu_byte luaP_opmodes[NUM_OPCODES];)
343 343
344#define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 7)) 344#define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 7))
345#define testAMode(m) (luaP_opmodes[m] & (1 << 3)) 345#define testAMode(m) (luaP_opmodes[m] & (1 << 3))
@@ -358,7 +358,7 @@ 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 */ 361LUAI_DDEC(const char *const luaP_opnames[NUM_OPCODES+1];) /* opcode names */
362 362
363 363
364/* number of list items to accumulate before a SETLIST instruction */ 364/* number of list items to accumulate before a SETLIST instruction */