[Tarantool-patches] [PATCH 11/43] build: export src/lua/init.c symbols

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Sun Apr 12 03:12:51 MSK 2020


Exports a function and a variable used by src/lua/buffer.lua
via FFI.

Part of #2971
---
 extra/exports  | 2 --
 src/lua/init.c | 4 ++++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/extra/exports b/extra/exports
index b4b2d90c3..09bbd6f33 100644
--- a/extra/exports
+++ b/extra/exports
@@ -2,7 +2,6 @@
 
 # FFI
 
-tarantool_lua_slab_cache
 ibuf_create
 ibuf_reinit
 ibuf_destroy
@@ -31,7 +30,6 @@ tnt_iconv
 exception_get_string
 exception_get_int
 
-tarantool_lua_ibuf
 uuid_nil
 tt_uuid_create
 tt_uuid_str
diff --git a/src/lua/init.c b/src/lua/init.c
index da1a19ccd..35a7e5884 100644
--- a/src/lua/init.c
+++ b/src/lua/init.c
@@ -747,6 +747,10 @@ tarantool_lua_export_syms(void)
 		/* Submodules. */
 		(void *)tarantool_lua_digest_export_syms,
 		(void *)tarantool_lua_socket_export_syms,
+
+		/* Own symbols. */
+		(void *)tarantool_lua_slab_cache,
+		(void *)&tarantool_lua_ibuf,
 	};
 	return syms;
 }
-- 
2.21.1 (Apple Git-122.3)



More information about the Tarantool-patches mailing list