]> Savannah Git Hosting - gnulib.git/commit
string-buffer: Link to vasnprintf implementation only when needed.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Sep 2024 15:28:07 +0000 (17:28 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 24 Sep 2024 15:28:07 +0000 (17:28 +0200)
commit413cbae0c220be525157832e9da94261ec2f08e9
tree94bb89146cea1c4d8b4100a3b6db75da2ae45041
parent5a7754d11ecaf369987b7074333f2b392238d04a
string-buffer: Link to vasnprintf implementation only when needed.

* lib/string-buffer-printf.c: New file, extracted from
lib/string-buffer.c.
* lib/string-buffer.c: Don't include <stdarg.h>.
(sb_ensure_more_bytes): Declare. Make non-static.
(sb_appendvf, sb_appendf): Moved to lib/string-buffer-printf.c.
* modules/string-buffer (Files): Add lib/string-buffer-printf.c.
(Makefile.am): Arrange to compile string-buffer-printf.c.
ChangeLog
lib/string-buffer-printf.c [new file with mode: 0644]
lib/string-buffer.c
modules/string-buffer