Date: Sun, 16 Jan 2005 22:13:52 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive_platform.h archive_string.h archive_string_sprintf.c configure.ac.in Message-ID: <200501162213.j0GMDroW095840@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2005-01-16 22:13:52 UTC FreeBSD src repository Modified files: lib/libarchive archive_platform.h archive_string.h archive_string_sprintf.c configure.ac.in Log: 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 Revision Changes Path 1.13 +6 -0 src/lib/libarchive/archive_platform.h 1.6 +1 -0 src/lib/libarchive/archive_string.h 1.7 +77 -14 src/lib/libarchive/archive_string_sprintf.c 1.3 +6 -0 src/lib/libarchive/configure.ac.in
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501162213.j0GMDroW095840>