diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-18 09:51:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-18 09:51:05 -0300 |
commit | b43300c14f562bcdc1050f2c05e52fac3f6c99b7 (patch) | |
tree | b21fb2577e9f40340f22cbe44648a37f8d16f12f /lopcodes.h | |
parent | af70905246acfad225904b64d027e5b01c7b10eb (diff) | |
download | lua-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
342 | LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; | 342 | LUAI_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 | ||
361 | LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ | 361 | LUAI_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 */ |