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 040A3442BB7 for ; Sun, 12 Apr 2020 03:17:07 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQJ9-0005lJ-FQ for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:17:07 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:30 +0200 Message-Id: <3e577227e0fe2ea4d4e1a9fa8341b7ee550300df.1586650013.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 08/43] build: export src/lib/salad/guava.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/digest.lua via FFI. Part of #2971 --- extra/exports | 1 - src/exports.c | 2 ++ src/lib/salad/guava.c | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/extra/exports b/extra/exports index cb0b823bb..4b20607ad 100644 --- a/extra/exports +++ b/extra/exports @@ -2,7 +2,6 @@ # FFI -guava random_bytes fiber_time fiber_time64 diff --git a/src/exports.c b/src/exports.c index 4c06320c7..c88d0b10d 100644 --- a/src/exports.c +++ b/src/exports.c @@ -50,6 +50,7 @@ EXPORT(base64_export_syms); EXPORT(clock_export_syms); +EXPORT(salad_guava_export_syms); EXPORT(scramble_export_syms); EXPORT(tarantool_lua_export_syms); @@ -59,6 +60,7 @@ export_syms(void) void *syms[] = { base64_export_syms, clock_export_syms, + salad_guava_export_syms, scramble_export_syms, tarantool_lua_export_syms, }; diff --git a/src/lib/salad/guava.c b/src/lib/salad/guava.c index 46bf1ac15..c0edf1b60 100644 --- a/src/lib/salad/guava.c +++ b/src/lib/salad/guava.c @@ -61,3 +61,12 @@ guava(int64_t state, int32_t buckets) return candidate; } } + +void ** +salad_guava_export_syms(void) +{ + static void *syms[] = { + (void *)guava, + }; + return syms; +} -- 2.21.1 (Apple Git-122.3)