Re: config.h inclusion leftovers

2006-02-28 Thread Jim Meyering
[EMAIL PROTECTED] (Karl Berry) wrote: > Hmm. Just noticed that those files are normally mirrored from > gettext (see gnulib/config/srclist.txt). > > Yes, although I haven't "auto"updated yet because of those differences. > > Bruno, would you accept Ralf's patch so we don't have to >

Re: config.h inclusion leftovers

2006-02-25 Thread Karl Berry
Hmm. Just noticed that those files are normally mirrored from gettext (see gnulib/config/srclist.txt). Yes, although I haven't "auto"updated yet because of those differences. Bruno, would you accept Ralf's patch so we don't have to decouple those files? Per Bruno, the checking/m

Re: config.h inclusion leftovers

2006-02-25 Thread Jim Meyering
Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > The following patch changes the last files over to the agreed-to style > for inclusion of `config.h'. > > * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize > inclusion of `config.h'. Applied. Hmm. Just noticed that those files are no

Re: config.h inclusion leftovers

2006-02-24 Thread Jim Meyering
Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > The following patch changes the last files over to the agreed-to style > for inclusion of `config.h'. > > * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize > inclusion of `config.h'. Thanks. Applied.

config.h inclusion leftovers

2006-02-24 Thread Ralf Wildenhues
The following patch changes the last files over to the agreed-to style for inclusion of `config.h'. Cheers, Ralf * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of `config.h'. Index: lib/mkdtemp.c

Re: config.h inclusion

2005-09-21 Thread Ralf Wildenhues
Hi Paul, Bruno, * Paul Eggert wrote on Mon, Sep 19, 2005 at 07:31:27PM CEST: > > Since there was general agreement I installed all the > patches, except for the following files: > > mkdtemp.c > setenv.c > unsetenv.c > > argp-eexst.c > argp-fmtstream.c > argp-fmtstream.h > argp-fs-xinl.c > argp-

Re: config.h inclusion

2005-09-19 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > OK. Here's the second patch updated, then. Thanks. Since there was general agreement I installed all the patches, except for the following files: mkdtemp.c setenv.c unsetenv.c argp-eexst.c argp-fmtstream.c argp-fmtstream.h argp-fs-xinl.c argp-xinl

Re: config.h inclusion

2005-09-16 Thread Noah Misch
On Thu, Sep 15, 2005 at 09:45:20AM +0200, Ralf Wildenhues wrote: > * Ralf Wildenhues wrote on Thu, Sep 15, 2005 at 08:20:28AM CEST: > > * Paul Eggert wrote on Thu, Sep 15, 2005 at 01:10:53AM CEST: > > > > > Also, now that I think about it I prefer "#if HAVE_CONFIG_H" to > > > "#ifdef HAVE_CONFIG_H

Re: config.h inclusion

2005-09-16 Thread Ralf Wildenhues
Hi Paul, Noah, * Paul Eggert wrote on Thu, Sep 15, 2005 at 04:56:04PM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > I learned about this issue while actually trying to make use of a module > > with one of the unguarded files; I did not use AC_CONFIG_HEADERS. > > Ok, sorry, I didn't k

Re: config.h inclusion

2005-09-15 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > I learned about this issue while actually trying to make use of a module > with one of the unguarded files; I did not use AC_CONFIG_HEADERS. Ok, sorry, I didn't know people still did that. In that case, let's keep the #if. > Surely there are also re

Re: config.h inclusion

2005-09-15 Thread Ralf Wildenhues
[ copying libtool-patches ] * Ralf Wildenhues wrote on Thu, Sep 15, 2005 at 08:20:28AM CEST: > * Paul Eggert wrote on Thu, Sep 15, 2005 at 01:10:53AM CEST: > > > Also, now that I think about it I prefer "#if HAVE_CONFIG_H" to > > "#ifdef HAVE_CONFIG_H". (I don't know about other people.) But if

Re: config.h inclusion

2005-09-14 Thread Ralf Wildenhues
Hi Paul, Simon, Bruno, * Paul Eggert wrote on Thu, Sep 15, 2005 at 01:10:53AM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > 1) Fix the files that forgot to guard inclusion by HAVE_CONFIG_H. > >This is the first patch. > > Actually, I was thinking that we should go the other way,

Re: config.h inclusion

2005-09-14 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > 1) Fix the files that forgot to guard inclusion by HAVE_CONFIG_H. >This is the first patch. Actually, I was thinking that we should go the other way, and include config.h unconditionally (except for glibc-derived code). As far as I know, nobody o

Re: [bug-gnulib] Re: config.h inclusion

2005-09-14 Thread Bruno Haible
Ralf Wildenhues wrote: > Thinking out loud, `#if HAVE*' vs. `#ifdef HAVE*' also could be > uniformized for other values of `*' .. not sure it's worth the effort. If we were to do this, then towards #if, not towards #ifdef. $ grep '# *if HAVE_' *.h *.c | wc -l 429 $ grep '# *ifdef HAVE_' *.h *

Re: config.h inclusion

2005-09-14 Thread Simon Josefsson
Ralf Wildenhues <[EMAIL PROTECTED]> writes: >I have added a warning to the headers that config.h needs to be >included beforehand. Do we really need this comment? It is better to document this in doc/gnulib.texi, in my opinion. Then it will cover all files, not only the one where we rem

Re: config.h inclusion

2005-09-14 Thread Ralf Wildenhues
Hi Paul, * Paul Eggert wrote on Wed, Sep 14, 2005 at 01:21:18AM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > Would you accept a patch to change all of these to use > > #ifdef HAVE_CONFIG_H > > # include > > #endif > > > > uniformly? > > That makes sense to me, yes. We should be co

Re: config.h inclusion

2005-09-13 Thread Paul Eggert
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Would you accept a patch to change all of these to use > #ifdef HAVE_CONFIG_H > # include > #endif > > uniformly? That makes sense to me, yes. We should be consistent, and that's the majority usage. Also, no .h file should include config.h. This i

Re: config.h inclusion

2005-09-13 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Tue, Sep 13, 2005 at 03:55:33PM CEST: > > Right now, roughly 230 files in gnulib/lib include config.h. > 210 of those #include , the rest "config.h". > 10 of all of them are not guarded by HAVE_CONFIG_H, about half of the > others by `#ifdef HAVE_CONFIG_H', and half by `

config.h inclusion

2005-09-13 Thread Ralf Wildenhues
Hi there, Right now, roughly 230 files in gnulib/lib include config.h. 210 of those #include , the rest "config.h". 10 of all of them are not guarded by HAVE_CONFIG_H, about half of the others by `#ifdef HAVE_CONFIG_H', and half by `#if HAVE_CONFIG_H'. Would you accept a patch to change all of th