diff options
| author | Tom Callaway <spot@fedoraproject.org> | 2013-05-14 16:40:40 -0400 |
|---|---|---|
| committer | Tom Callaway <spot@fedoraproject.org> | 2013-05-14 16:40:40 -0400 |
| commit | 44f7aeefd6bcd5cee9e83fb10b16d84b2c5bc771 (patch) | |
| tree | bffa98c2985193401f855382961906911ad87d29 /lua-5.2.2-luac-shared-link-fix.patch | |
| parent | 8e864b6dbb289d92c00b00b0770ffc4f60b5fc82 (diff) | |
| download | lua-44f7aeefd6bcd5cee9e83fb10b16d84b2c5bc771.tar.gz lua-44f7aeefd6bcd5cee9e83fb10b16d84b2c5bc771.tar.xz lua-44f7aeefd6bcd5cee9e83fb10b16d84b2c5bc771.zip | |
lua 5.2
Diffstat (limited to 'lua-5.2.2-luac-shared-link-fix.patch')
| -rw-r--r-- | lua-5.2.2-luac-shared-link-fix.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/lua-5.2.2-luac-shared-link-fix.patch b/lua-5.2.2-luac-shared-link-fix.patch new file mode 100644 index 0000000..6c9eb99 --- /dev/null +++ b/lua-5.2.2-luac-shared-link-fix.patch @@ -0,0 +1,54 @@ +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" |
