summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-29 01:23:57 +0000
committermidipix <writeonce@midipix.org>2024-01-29 01:23:57 +0000
commitf188e8f85522312ef04b8d1d162d8586b964975e (patch)
treef4a430cb1eab2dc4fed4336ac469e6da53a871fd /src
parent5ac87ef92cab60af788bef6b5a069f5a49e61a74 (diff)
downloadslibtool-f188e8f85522312ef04b8d1d162d8586b964975e.tar.bz2
slibtool-f188e8f85522312ef04b8d1d162d8586b964975e.tar.xz
archiver implementation: move internal macros to the ar internal header.
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_meta.c9
-rw-r--r--src/internal/slibtool_ar_impl.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index 804ac39..ec45777 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -16,15 +16,6 @@
#include "slibtool_driver_impl.h"
#include "slibtool_errinfo_impl.h"
-/* decimal values in archive header are right padded with ascii spaces */
-#define AR_DEC_PADDING (0x20)
-
-/* archive file members are right padded as needed with ascii newline */
-#define AR_OBJ_PADDING (0x0A)
-
-/* initial number of elements in the transient, on-stack vector */
-# define AR_STACK_VECTOR_ELEMENTS (0x200)
-
/* transient header info vector */
struct ar_header_info {
struct ar_raw_file_header * phdr;
diff --git a/src/internal/slibtool_ar_impl.h b/src/internal/slibtool_ar_impl.h
index 48cdec8..0aa0526 100644
--- a/src/internal/slibtool_ar_impl.h
+++ b/src/internal/slibtool_ar_impl.h
@@ -5,6 +5,15 @@
#include <slibtool/slibtool.h>
#include <slibtool/slibtool_arbits.h>
+/* decimal values in archive header are right padded with ascii spaces */
+#define AR_DEC_PADDING (0x20)
+
+/* archive file members are right padded as needed with ascii newline */
+#define AR_OBJ_PADDING (0x0A)
+
+/* initial number of elements in the transient, on-stack vector */
+# define AR_STACK_VECTOR_ELEMENTS (0x200)
+
extern const struct argv_option slbt_ar_options[];
struct ar_armaps_impl {