From 279932401cb1e799f2e8bdae7eae47b788c3001d Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 22 Feb 2024 06:13:35 +0000 Subject: internals: slbt_is_strong_coff_symbol(): from _static_ to a _hidden_ function. --- src/internal/slibtool_pecoff_impl.c | 16 ++++++++++++++++ src/internal/slibtool_pecoff_impl.h | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 src/internal/slibtool_pecoff_impl.c create mode 100644 src/internal/slibtool_pecoff_impl.h (limited to 'src/internal') diff --git a/src/internal/slibtool_pecoff_impl.c b/src/internal/slibtool_pecoff_impl.c new file mode 100644 index 0000000..3ce2d0e --- /dev/null +++ b/src/internal/slibtool_pecoff_impl.c @@ -0,0 +1,16 @@ +/*******************************************************************/ +/* slibtool: a skinny libtool implementation, written in C */ +/* Copyright (C) 2016--2024 SysDeer Technologies, LLC */ +/* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ +/*******************************************************************/ + +#include + +#include "slibtool_visibility_impl.h" + +slbt_hidden int slbt_is_strong_coff_symbol(const char * sym) +{ + return strncmp(sym,"__imp_",6) + && strncmp(sym,".weak.",6) + && strncmp(sym,".refptr.",8); +} diff --git a/src/internal/slibtool_pecoff_impl.h b/src/internal/slibtool_pecoff_impl.h new file mode 100644 index 0000000..e18b5af --- /dev/null +++ b/src/internal/slibtool_pecoff_impl.h @@ -0,0 +1,6 @@ +#ifndef SLIBTOOL_PECOFF_IMPL_H +#define SLIBTOOL_PECOFF_IMPL_H + +int slbt_is_strong_coff_symbol(const char *); + +#endif -- cgit v1.2.3