mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
Reduce duplication among *printf-posix modules.
* modules/mixin/printf-posix: New file. * modules/c-vasnprintf (Depends-on): Add it. Remove isnan*-nolibm, frexp*-nolibm, printf-frexp*, signbit, fpucw. * modules/dprintf-posix (Depends-on): Likewise. * modules/fprintf-posix (Depends-on): Likewise. * modules/snprintf-posix (Depends-on): Likewise. * modules/sprintf-posix (Depends-on): Likewise. * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise. * modules/unistdio/u16-vasnprintf (Depends-on): Likewise. * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise. * modules/unistdio/u32-vasnprintf (Depends-on): Likewise. * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise. * modules/unistdio/u8-vasnprintf (Depends-on): Likewise. * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise. * modules/vasnprintf-posix (Depends-on): Likewise. * modules/vasnwprintf-posix (Depends-on): Likewise. * modules/vasprintf-posix (Depends-on): Likewise. * modules/vdprintf-posix (Depends-on): Likewise. * modules/vfprintf-posix (Depends-on): Likewise. * modules/vsnprintf-posix (Depends-on): Likewise. * modules/vsprintf-posix (Depends-on): Likewise.
This commit is contained in:
25
ChangeLog
25
ChangeLog
@@ -1,3 +1,28 @@
|
||||
2024-06-24 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Reduce duplication among *printf-posix modules.
|
||||
* modules/mixin/printf-posix: New file.
|
||||
* modules/c-vasnprintf (Depends-on): Add it. Remove isnan*-nolibm,
|
||||
frexp*-nolibm, printf-frexp*, signbit, fpucw.
|
||||
* modules/dprintf-posix (Depends-on): Likewise.
|
||||
* modules/fprintf-posix (Depends-on): Likewise.
|
||||
* modules/snprintf-posix (Depends-on): Likewise.
|
||||
* modules/sprintf-posix (Depends-on): Likewise.
|
||||
* modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
|
||||
* modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
|
||||
* modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
|
||||
* modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
|
||||
* modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
|
||||
* modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
|
||||
* modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
|
||||
* modules/vasnprintf-posix (Depends-on): Likewise.
|
||||
* modules/vasnwprintf-posix (Depends-on): Likewise.
|
||||
* modules/vasprintf-posix (Depends-on): Likewise.
|
||||
* modules/vdprintf-posix (Depends-on): Likewise.
|
||||
* modules/vfprintf-posix (Depends-on): Likewise.
|
||||
* modules/vsnprintf-posix (Depends-on): Likewise.
|
||||
* modules/vsprintf-posix (Depends-on): Likewise.
|
||||
|
||||
2024-06-24 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
c-vasnprintf: Relicense under LGPLv2+.
|
||||
|
||||
@@ -26,13 +26,7 @@ attribute
|
||||
limits-h
|
||||
stdint
|
||||
stdio
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
free-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
|
||||
@@ -18,15 +18,8 @@ dprintf
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
vasnprintf [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
isnand-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
isnanl-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
frexp-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
frexpl-nolibm [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
printf-frexp [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
printf-frexpl [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
signbit [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
fpucw [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
vasnprintf [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
mixin/printf-posix [test $ac_cv_func_dprintf = no || test $REPLACE_DPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_DPRINTF_POSIX
|
||||
|
||||
@@ -19,17 +19,10 @@ nocrash
|
||||
printf-safe
|
||||
errno
|
||||
multiarch
|
||||
fseterr [test $REPLACE_FPRINTF = 1]
|
||||
vasnprintf [test $REPLACE_FPRINTF = 1]
|
||||
isnand-nolibm [test $REPLACE_FPRINTF = 1]
|
||||
isnanl-nolibm [test $REPLACE_FPRINTF = 1]
|
||||
free-posix [test $REPLACE_FPRINTF = 1]
|
||||
frexp-nolibm [test $REPLACE_FPRINTF = 1]
|
||||
frexpl-nolibm [test $REPLACE_FPRINTF = 1]
|
||||
printf-frexp [test $REPLACE_FPRINTF = 1]
|
||||
printf-frexpl [test $REPLACE_FPRINTF = 1]
|
||||
signbit [test $REPLACE_FPRINTF = 1]
|
||||
fpucw [test $REPLACE_FPRINTF = 1]
|
||||
fseterr [test $REPLACE_FPRINTF = 1]
|
||||
vasnprintf [test $REPLACE_FPRINTF = 1]
|
||||
mixin/printf-posix [test $REPLACE_FPRINTF = 1]
|
||||
free-posix [test $REPLACE_FPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_FPRINTF_POSIX
|
||||
|
||||
28
modules/mixin/printf-posix
Normal file
28
modules/mixin/printf-posix
Normal file
@@ -0,0 +1,28 @@
|
||||
Description:
|
||||
Module dependencies that are needed to compile lib/vasnprintf.c
|
||||
with all extras for POSIX compliance.
|
||||
|
||||
Files:
|
||||
|
||||
Depends-on:
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexp-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
|
||||
configure.ac:
|
||||
# Conditionally invoke gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS.
|
||||
|
||||
Makefile.am:
|
||||
|
||||
Include:
|
||||
|
||||
License:
|
||||
LGPLv2+
|
||||
|
||||
Maintainer:
|
||||
all
|
||||
@@ -18,15 +18,8 @@ snprintf
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
vasnprintf [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
isnand-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
isnanl-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
frexp-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
frexpl-nolibm [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
printf-frexp [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
printf-frexpl [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
signbit [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
fpucw [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
vasnprintf [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
mixin/printf-posix [test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_SNPRINTF_POSIX
|
||||
|
||||
@@ -18,17 +18,10 @@ stdio
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
vzsprintf [test $REPLACE_SPRINTF = 1]
|
||||
isnand-nolibm [test $REPLACE_SPRINTF = 1]
|
||||
isnanl-nolibm [test $REPLACE_SPRINTF = 1]
|
||||
frexp-nolibm [test $REPLACE_SPRINTF = 1]
|
||||
frexpl-nolibm [test $REPLACE_SPRINTF = 1]
|
||||
printf-frexp [test $REPLACE_SPRINTF = 1]
|
||||
printf-frexpl [test $REPLACE_SPRINTF = 1]
|
||||
signbit [test $REPLACE_SPRINTF = 1]
|
||||
fpucw [test $REPLACE_SPRINTF = 1]
|
||||
stdint [test $REPLACE_SPRINTF = 1]
|
||||
errno [test $REPLACE_SPRINTF = 1]
|
||||
vzsprintf [test $REPLACE_SPRINTF = 1]
|
||||
mixin/printf-posix [test $REPLACE_SPRINTF = 1]
|
||||
stdint [test $REPLACE_SPRINTF = 1]
|
||||
errno [test $REPLACE_SPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_SPRINTF_POSIX
|
||||
|
||||
@@ -31,13 +31,7 @@ unistr/u32-strlen
|
||||
unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -31,13 +31,7 @@ unistr/u32-strlen
|
||||
unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -31,13 +31,7 @@ unistr/u32-strlen
|
||||
unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -31,13 +31,7 @@ unistr/u32-strlen
|
||||
unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -31,13 +31,7 @@ unistr/u32-strlen
|
||||
unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -31,13 +31,7 @@ unistr/u32-strlen
|
||||
unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -29,13 +29,7 @@ unistr/u32-strmblen
|
||||
attribute
|
||||
stdint
|
||||
mbsnlen
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
alloca-opt
|
||||
|
||||
@@ -15,14 +15,7 @@ m4/math_h.m4
|
||||
|
||||
Depends-on:
|
||||
vasnprintf
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexp-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
|
||||
@@ -15,14 +15,7 @@ m4/math_h.m4
|
||||
|
||||
Depends-on:
|
||||
vasnwprintf
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexp-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
mixin/printf-posix
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
|
||||
@@ -14,15 +14,8 @@ m4/math_h.m4
|
||||
|
||||
Depends-on:
|
||||
vasprintf
|
||||
vasnprintf [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
|
||||
isnand-nolibm
|
||||
isnanl-nolibm
|
||||
frexp-nolibm
|
||||
frexpl-nolibm
|
||||
printf-frexp
|
||||
printf-frexpl
|
||||
signbit
|
||||
fpucw
|
||||
vasnprintf [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
|
||||
mixin/printf-posix [test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1]
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
|
||||
@@ -18,15 +18,8 @@ vdprintf
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
vasnprintf [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
isnand-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
isnanl-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
frexp-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
frexpl-nolibm [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
printf-frexp [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
printf-frexpl [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
signbit [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
fpucw [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
vasnprintf [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
mixin/printf-posix [test $ac_cv_func_vdprintf = no || test $REPLACE_VDPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_VDPRINTF_POSIX
|
||||
|
||||
@@ -18,18 +18,11 @@ stdio
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
free-posix [test $REPLACE_VFPRINTF = 1]
|
||||
fseterr [test $REPLACE_VFPRINTF = 1]
|
||||
vasnprintf [test $REPLACE_VFPRINTF = 1]
|
||||
isnand-nolibm [test $REPLACE_VFPRINTF = 1]
|
||||
isnanl-nolibm [test $REPLACE_VFPRINTF = 1]
|
||||
frexp-nolibm [test $REPLACE_VFPRINTF = 1]
|
||||
frexpl-nolibm [test $REPLACE_VFPRINTF = 1]
|
||||
printf-frexp [test $REPLACE_VFPRINTF = 1]
|
||||
printf-frexpl [test $REPLACE_VFPRINTF = 1]
|
||||
signbit [test $REPLACE_VFPRINTF = 1]
|
||||
fpucw [test $REPLACE_VFPRINTF = 1]
|
||||
errno [test $REPLACE_VFPRINTF = 1]
|
||||
free-posix [test $REPLACE_VFPRINTF = 1]
|
||||
fseterr [test $REPLACE_VFPRINTF = 1]
|
||||
vasnprintf [test $REPLACE_VFPRINTF = 1]
|
||||
mixin/printf-posix [test $REPLACE_VFPRINTF = 1]
|
||||
errno [test $REPLACE_VFPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_VFPRINTF_POSIX
|
||||
|
||||
@@ -18,15 +18,8 @@ vsnprintf
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
vasnprintf [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
isnand-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
isnanl-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
frexp-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
frexpl-nolibm [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
printf-frexp [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
printf-frexpl [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
signbit [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
fpucw [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
vasnprintf [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
mixin/printf-posix [test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_VSNPRINTF_POSIX
|
||||
|
||||
@@ -18,17 +18,10 @@ stdio
|
||||
nocrash
|
||||
printf-safe
|
||||
multiarch
|
||||
vzsprintf [test $REPLACE_VSPRINTF = 1]
|
||||
isnand-nolibm [test $REPLACE_VSPRINTF = 1]
|
||||
isnanl-nolibm [test $REPLACE_VSPRINTF = 1]
|
||||
frexp-nolibm [test $REPLACE_VSPRINTF = 1]
|
||||
frexpl-nolibm [test $REPLACE_VSPRINTF = 1]
|
||||
printf-frexp [test $REPLACE_VSPRINTF = 1]
|
||||
printf-frexpl [test $REPLACE_VSPRINTF = 1]
|
||||
signbit [test $REPLACE_VSPRINTF = 1]
|
||||
fpucw [test $REPLACE_VSPRINTF = 1]
|
||||
stdint [test $REPLACE_VSPRINTF = 1]
|
||||
errno [test $REPLACE_VSPRINTF = 1]
|
||||
vzsprintf [test $REPLACE_VSPRINTF = 1]
|
||||
mixin/printf-posix [test $REPLACE_VSPRINTF = 1]
|
||||
stdint [test $REPLACE_VSPRINTF = 1]
|
||||
errno [test $REPLACE_VSPRINTF = 1]
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_VSPRINTF_POSIX
|
||||
|
||||
Reference in New Issue
Block a user