beta-0.89.2
[luatex.git] / source / libs / lua52 / lua52-PATCHES / patch-03-export
blob2c2edd01b6a3bd15b9fc7f47b4caa9063e62d26d
1 diff -ur lua-5.2.4.orig/src/lopcodes.h lua-5.2.4/src/lopcodes.h
2 --- lua-5.2.4.orig/src/lopcodes.h       2014-10-20 20:32:09.000000000 +0200
3 +++ lua-5.2.4/src/lopcodes.h    2015-03-11 08:31:42.000000000 +0100
4 @@ -269,7 +269,7 @@
5    OpArgK   /* argument is a constant or register/constant */
6  };
7  
8 -LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES];
9 +LUA_API const lu_byte luaP_opmodes[NUM_OPCODES];
11  #define getOpMode(m)   (cast(enum OpMode, luaP_opmodes[m] & 3))
12  #define getBMode(m)    (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3))
13 @@ -278,7 +278,7 @@
14  #define testTMode(m)   (luaP_opmodes[m] & (1 << 7))
17 -LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
18 +LUA_API const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
21  /* number of list items to accumulate before a SETLIST instruction */
22 diff -ur lua-5.2.4.orig/src/lundump.h lua-5.2.4/src/lundump.h
23 --- lua-5.2.4.orig/src/lundump.h        2013-04-12 20:48:47.000000000 +0200
24 +++ lua-5.2.4/src/lundump.h     2014-10-22 11:14:59.000000000 +0200
25 @@ -17,7 +17,7 @@
26  LUAI_FUNC void luaU_header (lu_byte* h);
28  /* dump one chunk; from ldump.c */
29 -LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
30 +LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
32  /* data to catch conversion errors */
33  #define LUAC_TAIL              "\x19\x93\r\n\x1a\n"