55 lines
2.3 KiB
Diff
55 lines
2.3 KiB
Diff
|
diff -up lua-5.2.2/src/lopcodes.c.luac-shared lua-5.2.2/src/lopcodes.c
|
||
|
--- lua-5.2.2/src/lopcodes.c.luac-shared 2012-05-14 09:34:18.000000000 -0400
|
||
|
+++ lua-5.2.2/src/lopcodes.c 2013-05-09 14:36:30.874581104 -0400
|
||
|
@@ -14,7 +14,7 @@
|
||
|
|
||
|
/* ORDER OP */
|
||
|
|
||
|
-LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
|
||
|
+LUA_API const char *const luaP_opnames[NUM_OPCODES+1] = {
|
||
|
"MOVE",
|
||
|
"LOADK",
|
||
|
"LOADKX",
|
||
|
@@ -61,7 +61,7 @@ LUAI_DDEF const char *const luaP_opnames
|
||
|
|
||
|
#define opmode(t,a,b,c,m) (((t)<<7) | ((a)<<6) | ((b)<<4) | ((c)<<2) | (m))
|
||
|
|
||
|
-LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
|
||
|
+LUA_API 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 */
|
||
|
diff -up lua-5.2.2/src/lopcodes.h.luac-shared lua-5.2.2/src/lopcodes.h
|
||
|
--- lua-5.2.2/src/lopcodes.h.luac-shared 2013-05-09 14:37:14.718581762 -0400
|
||
|
+++ lua-5.2.2/src/lopcodes.h 2013-05-09 14:37:40.998582156 -0400
|
||
|
@@ -269,7 +269,7 @@ enum OpArgMask {
|
||
|
OpArgK /* argument is a constant or register/constant */
|
||
|
};
|
||
|
|
||
|
-LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES];
|
||
|
+LUA_API const lu_byte luaP_opmodes[NUM_OPCODES];
|
||
|
|
||
|
#define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3))
|
||
|
#define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3))
|
||
|
@@ -278,7 +278,7 @@ LUAI_DDEC const lu_byte luaP_opmodes[NUM
|
||
|
#define testTMode(m) (luaP_opmodes[m] & (1 << 7))
|
||
|
|
||
|
|
||
|
-LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */
|
||
|
+LUA_API const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */
|
||
|
|
||
|
|
||
|
/* number of list items to accumulate before a SETLIST instruction */
|
||
|
diff -up lua-5.2.2/src/lundump.h.luac-shared lua-5.2.2/src/lundump.h
|
||
|
--- lua-5.2.2/src/lundump.h.luac-shared 2012-05-08 09:53:33.000000000 -0400
|
||
|
+++ lua-5.2.2/src/lundump.h 2013-05-09 14:36:30.874581104 -0400
|
||
|
@@ -17,7 +17,7 @@ LUAI_FUNC Closure* luaU_undump (lua_Stat
|
||
|
LUAI_FUNC void luaU_header (lu_byte* h);
|
||
|
|
||
|
/* dump one chunk; from ldump.c */
|
||
|
-LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
|
||
|
+LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
|
||
|
|
||
|
/* data to catch conversion errors */
|
||
|
#define LUAC_TAIL "\x19\x93\r\n\x1a\n"
|