lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


These functions are marked private even though they are used in luac,
causing linking to fail. As workaround, declare them as public API so
that the symbols aren't hidden.
---
 src/ldebug.h  | 2 +-
 src/lundump.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ldebug.h b/src/ldebug.h
index 974960e..6d13311 100644
--- a/src/ldebug.h
+++ b/src/ldebug.h
@@ -36,7 +36,7 @@
 #endif
 
 
-LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
+LUA_API int luaG_getfuncline (const Proto *f, int pc);
 LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
                                                     StkId *pos);
 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
diff --git a/src/lundump.h b/src/lundump.h
index f3748a9..e0dd22a 100644
--- a/src/lundump.h
+++ b/src/lundump.h
@@ -30,7 +30,7 @@
 LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name);
 
 /* dump one chunk; from ldump.c */
-LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
+LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
                          void* data, int strip);
 
 #endif
-- 
2.33.0