]> Savannah Git Hosting - gnulib.git/commitdiff
Reduce duplication among *printf-posix modules.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Jun 2024 23:04:11 +0000 (01:04 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Jun 2024 23:04:11 +0000 (01:04 +0200)
* 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.

21 files changed:
ChangeLog
modules/c-vasnprintf
modules/dprintf-posix
modules/fprintf-posix
modules/mixin/printf-posix [new file with mode: 0644]
modules/snprintf-posix
modules/sprintf-posix
modules/unistdio/u16-u16-vasnprintf
modules/unistdio/u16-vasnprintf
modules/unistdio/u32-u32-vasnprintf
modules/unistdio/u32-vasnprintf
modules/unistdio/u8-u8-vasnprintf
modules/unistdio/u8-vasnprintf
modules/unistdio/ulc-vasnprintf
modules/vasnprintf-posix
modules/vasnwprintf-posix
modules/vasprintf-posix
modules/vdprintf-posix
modules/vfprintf-posix
modules/vsnprintf-posix
modules/vsprintf-posix

index 5dfaf9023fd720123e5b90459a06a6962ce20110..b2dd608715fc722750a1039566163d9ccd8d4cdd 100644 (file)
--- a/ChangeLog
+++ b/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+.
index 1ecf4e9cef7c5cea45d03aecdba87b56659e8f91..ab48d643104ef1b7a8cb08a4f595a2ec8a3eff9e 100644 (file)
@@ -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
index 8f925864370fe43e0d35f1e76e2eb599e0e33ba5..5bb88bf80d49242fc38a6ea098976f1af802c0e5 100644 (file)
@@ -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
index f2bd1a5c7d3106e33eb74094d3f3ee09dba0fef3..6cda1ccef76da2d70411ae879241243805461448 100644 (file)
@@ -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
diff --git a/modules/mixin/printf-posix b/modules/mixin/printf-posix
new file mode 100644 (file)
index 0000000..f785591
--- /dev/null
@@ -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
index 5794e95ceae91100cd8ab2c574bfa1fbdb9549cc..e099c7644e2f9b2166c2563d5b01b31c35e9eb29 100644 (file)
@@ -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
index a1eb6127adaf012bcda5b1bc6903013f8632dfe1..2c47424bec47df9e959c3a30d972f91a5a9716fd 100644 (file)
@@ -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
index 98adbbb37acb0a5fe3ed88edce2883076526d9f1..0237505d581aa752270f5d10646d53081820d9f6 100644 (file)
@@ -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
index de541ef1ca60d9d5f6d69094f5e89eef6ae66cea..d92e6dd1579090e974d071584cfacaaac443f32f 100644 (file)
@@ -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
index 168cdbd7a99cdc168783af378fb6449b53420ff5..119a9fe4f450b56b7a96996fe2969452e200dbb3 100644 (file)
@@ -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
index bdea7468b10b5393deb7ea5a32d7b277734a23b7..bd094712a2de37aa389a8497a5748a1a9717b82f 100644 (file)
@@ -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
index 5168794bf180bf5795589246a5e118971c5a84c2..733bc15d3f61963f6be6cc400fc232e61ec181bb 100644 (file)
@@ -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
index cf83b9343cb7c99f1112695786bedd6371cfdb2a..b86f0d2c195512c0479d836dee77ca4af2896f14 100644 (file)
@@ -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
index bea310b8747c24ed7fe0c598bab5d98923b289f9..544e39d0ab31b3af47e309620a931b295212524e 100644 (file)
@@ -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
index 10660f369dfbabd431fe3355387494d46dbf4169..cdc7a8900aa4449d2c3208b035506a4d7442cd31 100644 (file)
@@ -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
index 554efe1707056c438bb1db379f3e213ed71267a2..71d6a917178829853a335db82c0b66e199bf8a37 100644 (file)
@@ -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
index 7c0686be9d7e3966ce750cf2a5ac01697412dcd4..2bfb2672aed475fd29d26f90bf78467433c8b8d9 100644 (file)
@@ -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
index 8feca348b1e30d93137f13d9cba5845acd89579e..d4a98805d8ffdb8c1d2e0ae29d9c0edfe759fcc9 100644 (file)
@@ -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
index 47794dd9b1adc4b6b88c0347124645ffa69321c8..3bc350d98b156ff7914a06e9eba6d6ec0d6c730d 100644 (file)
@@ -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
index 88220bf703654049b2becaf1b63ff7de7ba92358..720dcedf02439b144c58eda4dcbdc05a79e143dd 100644 (file)
@@ -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
index 2bbb36055b975cb72c7b644e884a0f7a32547ee9..91b634921ab6de1c0bd5da4fbe6c204c817d863f 100644 (file)
@@ -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