1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

vasprintf-gnu: New module.

* m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_IS_POSIX): New macro,
extracted from gl_FUNC_VASPRINTF_POSIX.
(gl_FUNC_VASPRINTF_POSIX): Require it. Invoke
gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS.
* m4/vasprintf-gnu.m4: New file, based on m4/vasprintf-posix.m4.
* modules/vasprintf-gnu: New file, based on modules/vasnprintf-gnu.
* doc/glibc-functions/vasprintf.texi: Mention the new module.
* doc/glibc-functions/asprintf.texi: Likewise.
This commit is contained in:
Bruno Haible
2023-03-24 11:28:38 +01:00
parent 20ba9bfff2
commit 891708e6f2
6 changed files with 98 additions and 24 deletions

28
modules/vasprintf-gnu Normal file
View File

@@ -0,0 +1,28 @@
Description:
POSIX and GNU compatible vsprintf with automatic memory allocation.
Comment:
This module should not be used as a dependency from a test module,
otherwise when this module occurs as a tests-related module, it will
have side effects on the compilation of the 'vasnprintf' module, if
that module occurs among the main modules in lib/.
Files:
m4/vasprintf-gnu.m4
Depends-on:
vasprintf-posix
configure.ac:
gl_FUNC_VASPRINTF_GNU
Makefile.am:
Include:
"vasprintf.h"
License:
LGPL
Maintainer:
all