diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-18 14:52:05 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-18 14:52:05 +0000 |
commit | 6c4ba6b7612a1bfdf20246a22c71e0640471807b (patch) | |
tree | 1e8ed052b667de0f0eb44c9d4011e10ca4782708 /Build/source/libs/lua52/lua52-PATCHES/patch-03-export | |
parent | a81aaef05fcb0bcfc5f94dcdfbebf7543df1cfcb (diff) |
libs/lua52: New convention
git-svn-id: svn://tug.org/texlive/trunk@39764 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/lua52/lua52-PATCHES/patch-03-export')
-rw-r--r-- | Build/source/libs/lua52/lua52-PATCHES/patch-03-export | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/source/libs/lua52/lua52-PATCHES/patch-03-export b/Build/source/libs/lua52/lua52-PATCHES/patch-03-export new file mode 100644 index 00000000000..2c2edd01b6a --- /dev/null +++ b/Build/source/libs/lua52/lua52-PATCHES/patch-03-export @@ -0,0 +1,33 @@ +diff -ur lua-5.2.4.orig/src/lopcodes.h lua-5.2.4/src/lopcodes.h +--- lua-5.2.4.orig/src/lopcodes.h 2014-10-20 20:32:09.000000000 +0200 ++++ lua-5.2.4/src/lopcodes.h 2015-03-11 08:31:42.000000000 +0100 +@@ -269,7 +269,7 @@ + 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 @@ + #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 -ur lua-5.2.4.orig/src/lundump.h lua-5.2.4/src/lundump.h +--- lua-5.2.4.orig/src/lundump.h 2013-04-12 20:48:47.000000000 +0200 ++++ lua-5.2.4/src/lundump.h 2014-10-22 11:14:59.000000000 +0200 +@@ -17,7 +17,7 @@ + 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" |