[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: __GNUC_PREREQ (was: regex: 7 patches syncing from glibc to gnulib)
From: |
Bruno Haible |
Subject: |
Re: __GNUC_PREREQ (was: regex: 7 patches syncing from glibc to gnulib) |
Date: |
Thu, 28 Jan 2010 15:52:06 +0100 |
User-agent: |
KMail/1.9.9 |
Eric Blake wrote:
> For that matter, would it make sense to have a gnulib module that
> guarantees that __GNUC_PREREQ is defined in <config.h>, and then convert
> various other modules to use it rather than open-coding their __GNUC__
> version checks?
I don't think it's worth it:
- You would be replacing a well understandable one-liner with another
understandable one-liner. No win in terms of maintainability.
- As you say, one would have to think about the difference between standalone
generated header files and other header files. A minus for
maintainability.
- Either you make it a module of its own, requiring people to think about the
module dependency - also a minus for maintainability -, or it goes into
gnulib-common.m4 - which is IMO also not good, please keep gnulib-common as
thin as possible.
The only win would be for modules that come from glibc; it's a small set of
modules that use __GNUC_PREREQ: fts, getopt, inttostr, md5, regex, and
safe-alloc (not from glibc).
Bruno
Re: regex: 7 patches syncing from glibc to gnulib, Jim Meyering, 2010/01/28