bug-gnulib@gnu.org

2013-03-20 Thread Paul Eggert
On 03/20/13 14:22, Bruno Haible wrote: > I'm not aware of any portability problem here. Nor I. > It's more a question of style. I use 1>&2 and 2>&1 quite frequently, and would > find it odd to omit the '1' in one case but not in the other case. My style (and it is just style) is the reverse. I f

Re: ::gettimeofday' has not been declared - on cygwin

2013-03-20 Thread Tom G. Christensen
On 03/20/2013 06:49 PM, Paul Eggert wrote: On 03/19/13 11:43, marco atzeri wrote: it does not seem to work: Thanks, we did make some progress, but not enough. How about this patch instead? This affects Solaris, too. I tested it on Solaris 9 but do not have a 2.6 host to test it on; perhaps

bug-gnulib@gnu.org

2013-03-20 Thread Bruno Haible
Karl Berry asked: > Is there a portability reason to use 1>&2 vs. just >&2 to redirect to stderr? > I don't know of one, and don't see it mentioned in autoconf(Portable Shell). > The gnupload script currently uses both. I'm not aware of any portability problem here. It's more a question of style.

Re: errno --> errno name ?

2013-03-20 Thread Bruce Korb
On 03/20/13 01:54, Thien-Thi Nguyen wrote: >Polish, test, and finally submit the result here. > > Is there still any interest in this work? > This works. Needs to be made portable. Needs some sort of "module" thing. It amused me to do, but I doubt I'd find time to so all the gnulib polishi

Re: ::gettimeofday' has not been declared - on cygwin

2013-03-20 Thread Paul Eggert
On 03/19/13 11:43, marco atzeri wrote: > it does not seem to work: Thanks, we did make some progress, but not enough. How about this patch instead? This affects Solaris, too. I tested it on Solaris 9 but do not have a 2.6 host to test it on; perhaps Tom can do that. >From 0973b3f06923f7c4e719b

Re: cppcheck error in opendir.c

2013-03-20 Thread Arno Onken
On 03/20/2013 05:54 PM, Paul Eggert wrote: > On 03/20/13 09:38, Arno Onken wrote: >> It is explained in the second post on the bug tracker: > > Sorry, I don't know the bug tracker in question. Sorry. It's at http://sourceforge.net/apps/trac/cppcheck/ticket/4670 >> Comment(by amai): >> >> Well,

Re: cppcheck error in opendir.c

2013-03-20 Thread Paul Eggert
On 03/20/13 09:38, Arno Onken wrote: > It is explained in the second post on the bug tracker: Sorry, I don't know the bug tracker in question. > Comment(by amai): > > Well, I am just looking at lib/opendir.c - and I have no idea about the > correlation of involved macros ''HAVE_OPENDIR'' and '

Re: cppcheck error in opendir.c

2013-03-20 Thread Arno Onken
On 03/20/2013 04:28 PM, Paul Eggert wrote: > On 03/20/13 03:38, Arno Onken wrote: >> The following code in opendir.c silences cppcheck: >> >> {{{ >> #if !defined(HAVE_OPENDIR) && defined(REPLACE_FCHDIR) >> #error Invalid configuration!! >> #endif >> }}} > > It may silence cppcheck, but I'm afraid

Re: cppcheck error in opendir.c

2013-03-20 Thread Paul Eggert
On 03/20/13 03:38, Arno Onken wrote: > The following code in opendir.c silences cppcheck: > > {{{ > #if !defined(HAVE_OPENDIR) && defined(REPLACE_FCHDIR) > #error Invalid configuration!! > #endif > }}} It may silence cppcheck, but I'm afraid I don't see why it's correct or needed. Can you explai

Re: cppcheck error in opendir.c

2013-03-20 Thread Arno Onken
On 03/19/2013 08:57 PM, Paul Eggert wrote: > On 03/19/13 11:59, Arno Onken wrote: >> cppcheck version 1.58 reports the following error on the latest >> Savannah respository checkout of gnulib (last change Tue, 19 Mar 2013 >> 17:47:12 +): >> >> [lib/opendir.c:140]: (error) Mismatching allocation

Re: errno --> errno name ?

2013-03-20 Thread Thien-Thi Nguyen
() Bruno Haible () Wed, 8 Jun 2011 16:37:03 +0200 > Accretion: the coral reef's algorithm. ;-) >Would you be willing to create a gnulib module from this, for Sam? > > For Sam and anyone else interested, sure. What needs to be done? Create a .h file with the specificatio