bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reduce duplication among *printf-posix modules


From: Bruno Haible
Subject: Reduce duplication among *printf-posix modules
Date: Tue, 25 Jun 2024 01:08:45 +0200

For each of the *z*printf modules, I'll add a -posix and a -gnu variant.
In order to avoid code duplication between the module descriptions,
here are two patches that introduce a "mixin" module for the -posix
variant and likewise one for the -gnu variant.

These modules cannot be used on their own, and are a private detail.
The term "mixin" obviously refers to the concept of mixin classes
in various object-oriented languages.


2024-06-24  Bruno Haible  <bruno@clisp.org>

        Ease maintainability of *printf-gnu modules.
        * modules/mixin/printf-gnu: New file.
        * modules/dprintf-gnu (Depends-on): Add it.
        * modules/fprintf-gnu (Depends-on): Likewise.
        * modules/obstack-printf-gnu (Depends-on): Likewise.
        * modules/printf-gnu (Depends-on): Likewise.
        * modules/snprintf-gnu (Depends-on): Likewise.
        * modules/sprintf-gnu (Depends-on): Likewise.
        * modules/vasnprintf-gnu (Depends-on): Likewise.
        * modules/vasnwprintf-gnu (Depends-on): Likewise.
        * modules/vasprintf-gnu (Depends-on): Likewise.
        * modules/vdprintf-gnu (Depends-on): Likewise.
        * modules/vfprintf-gnu (Depends-on): Likewise.
        * modules/vprintf-gnu (Depends-on): Likewise.
        * modules/vsnprintf-gnu (Depends-on): Likewise.
        * modules/vsprintf-gnu (Depends-on): Likewise.

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.

Attachment: 0001-Reduce-duplication-among-printf-posix-modules.patch
Description: Text Data

Attachment: 0002-Ease-maintainability-of-printf-gnu-modules.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]