diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-01-16 22:13:51 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-01-16 22:13:51 +0000 |
commit | c78b57210eccac72647f863add37103f63772aa7 (patch) | |
tree | bfb0a79c240b0b2d8edd9439617cd84a4665df3f /lib/libarchive/archive_string.h | |
parent | a8c5c0fe7e55b0a11c3233f483e36f391f998b16 (diff) | |
download | FreeBSD-src-c78b57210eccac72647f863add37103f63772aa7.zip FreeBSD-src-c78b57210eccac72647f863add37103f63772aa7.tar.gz |
Implement a custom print formatter (archive_string_vsprintf)
for libarchive error messages. Mostly, this
avoids a portability headache related to
copying va_list arguments (some FreeBSD 5
platforms require va_copy; FreeBSD 4 doesn't
support va_copy at all). It also dramatically reduces the
size of libarchive for embedded applications:
a minimal "untar" program using libarchive can now be
under 64k statically linked (as opposed to ~100k
using library *printf() functions).
MFC after: 14 days
Diffstat (limited to 'lib/libarchive/archive_string.h')
-rw-r--r-- | lib/libarchive/archive_string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_string.h b/lib/libarchive/archive_string.h index f4e8b76..c9d1c00 100644 --- a/lib/libarchive/archive_string.h +++ b/lib/libarchive/archive_string.h @@ -67,6 +67,7 @@ __archive_strappend_char_UTF8(struct archive_string *, int); /* Append an integer in the specified base (2 <= base <= 16). */ struct archive_string * __archive_strappend_int(struct archive_string *as, int d, int base); +#define archive_strappend_int __archive_strappend_int /* Basic append operation. */ struct archive_string * |