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

sprintf-gnu: New module.

* m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_IS_POSIX): New macro,
extracted from gl_FUNC_SPRINTF_POSIX.
(gl_FUNC_SPRINTF_POSIX): Require it. Invoke
gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS.
* m4/sprintf-gnu.m4: New file, based on m4/sprintf-posix.m4.
* modules/sprintf-gnu: New file, based on modules/vasnprintf-gnu.
* doc/posix-functions/sprintf.texi: Mention the new module.
This commit is contained in:
Bruno Haible
2023-03-24 11:22:20 +01:00
parent 63c2d4a025
commit 0139749ca0
5 changed files with 86 additions and 20 deletions

28
modules/sprintf-gnu Normal file
View File

@@ -0,0 +1,28 @@
Description:
POSIX and GNU compatible sprintf() function: print formatted output to a string
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/sprintf-gnu.m4
Depends-on:
sprintf-posix
configure.ac:
gl_FUNC_SPRINTF_GNU
Makefile.am:
Include:
<stdio.h>
License:
LGPL
Maintainer:
all