From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 8F09E446427 for ; Sun, 12 Apr 2020 03:14:34 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQGg-0005lJ-2x for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:34 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:15 +0200 Message-Id: <6d791d5b14363f38a596c753b5a5bfca18535eaf.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 33/43] build: export src/lua/error.c symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Exports a function used by the public C API. Part of #2971 --- extra/exports | 1 - src/lua/error.c | 9 +++++++++ src/lua/init.c | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/extra/exports b/extra/exports index 30dbb63ff..1e7a1a49f 100644 --- a/extra/exports +++ b/extra/exports @@ -2,7 +2,6 @@ # Module API -luaT_error box_txn box_txn_begin box_txn_commit diff --git a/src/lua/error.c b/src/lua/error.c index 18a990a88..e3e9c6c9a 100644 --- a/src/lua/error.c +++ b/src/lua/error.c @@ -124,3 +124,12 @@ tarantool_lua_error_init(struct lua_State *L) CTID_CONST_STRUCT_ERROR_REF = luaL_ctypeid(L, "const struct error &"); assert(CTID_CONST_STRUCT_ERROR_REF != 0); } + +void ** +tarantool_lua_error_export_syms(void) +{ + static void *syms[] = { + (void *)luaT_error, + }; + return syms; +} diff --git a/src/lua/init.c b/src/lua/init.c index 6204961ba..daa685f57 100644 --- a/src/lua/init.c +++ b/src/lua/init.c @@ -737,6 +737,9 @@ tarantool_lua_buffer_export_syms(void); void ** tarantool_lua_digest_export_syms(void); +void ** +tarantool_lua_error_export_syms(void); + void ** tarantool_lua_msgpack_export_syms(void); @@ -759,6 +762,7 @@ tarantool_lua_export_syms(void) /* Submodules. */ (void *)tarantool_lua_buffer_export_syms, (void *)tarantool_lua_digest_export_syms, + (void *)tarantool_lua_error_export_syms, (void *)tarantool_lua_msgpack_export_syms, (void *)tarantool_lua_socket_export_syms, (void *)tarantool_lua_tnt_iconv_export_syms, -- 2.21.1 (Apple Git-122.3)