[Tarantool-patches] [PATCH 20/43] build: export third_party/PMurHash.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:01 MSK 2020
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)
More information about the Tarantool-patches
mailing list