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 BBD59442BAF for ; Sun, 12 Apr 2020 03:15:31 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQHb-0005lJ-9l for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:15:31 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:23 +0200 Message-Id: <4c3137eaf923dcf5e6a05b5e359b974448ef88f5.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 40/43] build: export src/lib/core/diag.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 src/lua/error.lua via FFI. Part of #2971 --- extra/exports | 1 - src/exports.c | 2 ++ src/lib/core/diag.c | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/extra/exports b/extra/exports index 1503c989a..809e0e07f 100644 --- a/extra/exports +++ b/extra/exports @@ -2,7 +2,6 @@ # Module API -error_set_prev box_latch_new box_latch_delete box_latch_lock diff --git a/src/exports.c b/src/exports.c index 1794471c8..a62c89b14 100644 --- a/src/exports.c +++ b/src/exports.c @@ -63,6 +63,7 @@ EXPORT(coio_export_syms); EXPORT(crc32_export_syms); EXPORT(crypto_export_syms); EXPORT(csv_export_syms); +EXPORT(diag_export_syms); EXPORT(exception_export_syms); EXPORT(fiber_cond_export_syms); EXPORT(fiber_export_syms); @@ -98,6 +99,7 @@ export_syms(void) crc32_export_syms, crypto_export_syms, csv_export_syms, + diag_export_syms, exception_export_syms, fiber_cond_export_syms, fiber_export_syms, diff --git a/src/lib/core/diag.c b/src/lib/core/diag.c index e143db18d..8b2db8c02 100644 --- a/src/lib/core/diag.c +++ b/src/lib/core/diag.c @@ -120,3 +120,11 @@ error_vformat_msg(struct error *e, const char *format, va_list ap) vsnprintf(e->errmsg, sizeof(e->errmsg), format, ap); } +void ** +diag_export_syms(void) +{ + static void *syms[] = { + (void *)error_set_prev, + }; + return syms; +} -- 2.21.1 (Apple Git-122.3)