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 DDD4D4696CF for ; Sun, 12 Apr 2020 03:13:50 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQFy-0005lJ-DF for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:13:50 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:01 +0200 Message-Id: <42b1bf9e4b7968531937bdccf2ec0c7f307b6713.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 20/43] build: export third_party/PMurHash.c symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Exports functions used by src/lua/digest.lua via FFI. Part of #2971 --- extra/exports | 3 --- src/exports.c | 2 ++ third_party/PMurHash.c | 11 +++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/extra/exports b/extra/exports index 3814202f7..91703c6bb 100644 --- a/extra/exports +++ b/extra/exports @@ -7,9 +7,6 @@ ibuf_reinit ibuf_destroy ibuf_reserve_slow -PMurHash32 -PMurHash32_Process -PMurHash32_Result crc32_calc mp_encode_double mp_encode_float diff --git a/src/exports.c b/src/exports.c index deb81e887..8b95dbae8 100644 --- a/src/exports.c +++ b/src/exports.c @@ -53,6 +53,7 @@ EXPORT(clock_export_syms); EXPORT(csv_export_syms); EXPORT(exception_export_syms); EXPORT(fiber_export_syms); +EXPORT(PMurHash32_export_syms); EXPORT(port_export_syms); EXPORT(random_export_syms); EXPORT(salad_guava_export_syms); @@ -72,6 +73,7 @@ export_syms(void) csv_export_syms, exception_export_syms, fiber_export_syms, + PMurHash32_export_syms, port_export_syms, random_export_syms, salad_guava_export_syms, diff --git a/third_party/PMurHash.c b/third_party/PMurHash.c index 017501264..316cdb426 100644 --- a/third_party/PMurHash.c +++ b/third_party/PMurHash.c @@ -315,3 +315,14 @@ void PMurHash32_test(const void *key, int len, uint32_t seed, void *out) } /*---------------------------------------------------------------------------*/ + +void ** +PMurHash32_export_syms(void) +{ + static void *syms[] = { + (void *)PMurHash32, + (void *)PMurHash32_Process, + (void *)PMurHash32_Result, + }; + return syms; +} -- 2.21.1 (Apple Git-122.3)