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

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