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 D386645C316 for ; Sun, 12 Apr 2020 03:13:52 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQG0-0005lJ-CI for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:13:52 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:02 +0200 Message-Id: <63ebd6c25a0f4bccf538a269830da85056e6a1cc.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 21/43] build: export src/crc32.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/crc32.c | 9 +++++++++ src/exports.c | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/extra/exports b/extra/exports index 91703c6bb..edcc831b9 100644 --- a/extra/exports +++ b/extra/exports @@ -7,7 +7,6 @@ ibuf_reinit ibuf_destroy ibuf_reserve_slow -crc32_calc mp_encode_double mp_encode_float mp_encode_decimal diff --git a/src/crc32.c b/src/crc32.c index ba9dfb105..58163fd3b 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -48,3 +48,12 @@ crc32_init() crc32_calc = &crc32c; #endif } + +void ** +crc32_export_syms(void) +{ + static void *syms[] = { + (void *)&crc32_calc, + }; + return syms; +} diff --git a/src/exports.c b/src/exports.c index 8b95dbae8..1f9617126 100644 --- a/src/exports.c +++ b/src/exports.c @@ -50,6 +50,7 @@ EXPORT(base64_export_syms); EXPORT(clock_export_syms); +EXPORT(crc32_export_syms); EXPORT(csv_export_syms); EXPORT(exception_export_syms); EXPORT(fiber_export_syms); @@ -70,6 +71,7 @@ export_syms(void) void *syms[] = { base64_export_syms, clock_export_syms, + crc32_export_syms, csv_export_syms, exception_export_syms, fiber_export_syms, -- 2.21.1 (Apple Git-122.3)