Blame SOURCES/lua-5.3.5-luac-shared-link-fix.patch

1bf03d
diff -up lua-5.3.5/src/lopcodes.c.luac-shared lua-5.3.5/src/lopcodes.c
1bf03d
--- lua-5.3.5/src/lopcodes.c.luac-shared	2019-10-23 15:36:44.487204487 -0400
1bf03d
+++ lua-5.3.5/src/lopcodes.c	2019-10-23 15:37:44.029960930 -0400
1bf03d
@@ -17,7 +17,7 @@
1bf03d
 
1bf03d
 /* ORDER OP */
1bf03d
 
1bf03d
-LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
1bf03d
+LUA_API const char *const luaP_opnames[NUM_OPCODES+1] = {
1bf03d
   "MOVE",
1bf03d
   "LOADK",
1bf03d
   "LOADKX",
1bf03d
@@ -71,7 +71,7 @@ LUAI_DDEF const char *const luaP_opnames
1bf03d
 
1bf03d
 #define opmode(t,a,b,c,m) (((t)<<7) | ((a)<<6) | ((b)<<4) | ((c)<<2) | (m))
1bf03d
 
1bf03d
-LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
1bf03d
+LUA_API const lu_byte luaP_opmodes[NUM_OPCODES] = {
1bf03d
 /*       T  A    B       C     mode		   opcode	*/
1bf03d
   opmode(0, 1, OpArgR, OpArgN, iABC)		/* OP_MOVE */
1bf03d
  ,opmode(0, 1, OpArgK, OpArgN, iABx)		/* OP_LOADK */
1bf03d
diff -up lua-5.3.5/src/lopcodes.h.luac-shared lua-5.3.5/src/lopcodes.h
1bf03d
--- lua-5.3.5/src/lopcodes.h.luac-shared	2019-10-23 15:37:52.982773948 -0400
1bf03d
+++ lua-5.3.5/src/lopcodes.h	2019-10-23 15:38:17.861254367 -0400
1bf03d
@@ -278,7 +278,7 @@ enum OpArgMask {
1bf03d
   OpArgK   /* argument is a constant or register/constant */
1bf03d
 };
1bf03d
 
1bf03d
-LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES];
1bf03d
+LUA_API const lu_byte luaP_opmodes[NUM_OPCODES];
1bf03d
 
1bf03d
 #define getOpMode(m)	(cast(enum OpMode, luaP_opmodes[m] & 3))
1bf03d
 #define getBMode(m)	(cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3))
1bf03d
@@ -287,7 +287,7 @@ LUAI_DDEC const lu_byte luaP_opmodes[NUM
1bf03d
 #define testTMode(m)	(luaP_opmodes[m] & (1 << 7))
1bf03d
 
1bf03d
 
1bf03d
-LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
1bf03d
+LUA_API const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
1bf03d
 
1bf03d
 
1bf03d
 /* number of list items to accumulate before a SETLIST instruction */
1bf03d
diff -up lua-5.3.5/src/lundump.h.luac-shared lua-5.3.5/src/lundump.h
1bf03d
--- lua-5.3.5/src/lundump.h.luac-shared	2019-10-23 15:38:46.707651903 -0400
1bf03d
+++ lua-5.3.5/src/lundump.h	2019-10-23 15:39:07.044227180 -0400
1bf03d
@@ -26,7 +26,7 @@
1bf03d
 LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name);
1bf03d
 
1bf03d
 /* dump one chunk; from ldump.c */
1bf03d
-LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
1bf03d
+LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
1bf03d
                          void* data, int strip);
1bf03d
 
1bf03d
 #endif