diff options
author | midipix <writeonce@midipix.org> | 2024-02-20 02:33:37 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-20 02:36:07 +0000 |
commit | 551fc3268637eb694842ee5913e85ae3f8c3357e (patch) | |
tree | 7c88e96337945201cd572aa2e4b98366eb184923 /src/arbits | |
parent | d42469095d909e70814099a22b40ae2f9831fe6b (diff) | |
download | slibtool-551fc3268637eb694842ee5913e85ae3f8c3357e.tar.bz2 slibtool-551fc3268637eb694842ee5913e85ae3f8c3357e.tar.xz |
code base: separate slbt_ar_create_mapfile() from slbt_au_output_mapfile().
Diffstat (limited to 'src/arbits')
-rw-r--r-- | src/arbits/output/slbt_au_output_mapfile.c | 12 | ||||
-rw-r--r-- | src/arbits/slbt_archive_mapfile.c (renamed from src/arbits/output/slbt_ar_output_mapfile.c) | 10 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/arbits/output/slbt_au_output_mapfile.c b/src/arbits/output/slbt_au_output_mapfile.c new file mode 100644 index 0000000..8a84cc2 --- /dev/null +++ b/src/arbits/output/slbt_au_output_mapfile.c @@ -0,0 +1,12 @@ +/*******************************************************************/ +/* 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 <slibtool/slibtool.h> + +int slbt_au_output_mapfile(const struct slbt_archive_meta * meta) +{ + return slbt_ar_create_mapfile(meta,0,0); +} diff --git a/src/arbits/output/slbt_ar_output_mapfile.c b/src/arbits/slbt_archive_mapfile.c index f8cc1b7..2bca16d 100644 --- a/src/arbits/output/slbt_ar_output_mapfile.c +++ b/src/arbits/slbt_archive_mapfile.c @@ -15,7 +15,7 @@ #include "slibtool_errinfo_impl.h" #include "slibtool_ar_impl.h" -static int slbt_au_output_mapfile_impl( +static int slbt_ar_output_mapfile_impl( const struct slbt_driver_ctx * dctx, struct slbt_archive_meta_impl * mctx, int fdout) @@ -91,17 +91,11 @@ static int slbt_ar_create_mapfile_impl( fdout = fdctx.fdout; } - return slbt_au_output_mapfile_impl( + return slbt_ar_output_mapfile_impl( dctx,mctx,fdout); } -int slbt_au_output_mapfile(const struct slbt_archive_meta * meta) -{ - return slbt_ar_create_mapfile_impl(meta,0,0); -} - - int slbt_ar_create_mapfile( const struct slbt_archive_meta * meta, const char * path, |