Re: yet another hello pretest

2006-11-13 Thread Karl Berry
Then your function body isn't "dirtied" with #if directives, True, but system.h is :). In this case, I think I'll go for the #if ENABLE_NLS, not so much because of the potential for warnings, but because it is two lines of directives vs. six. Thanks, karl

Re: yet another hello pretest

2006-11-12 Thread Ralf Wildenhues
Hello Karl, * Karl Berry wrote on Thu, Nov 09, 2006 at 01:55:38AM CET: > In case anyone is not totally bored already, one more time for gettext > 0.16 (thanks Bruno)... > ftp://alpha.gnu.org/gnu/hello/hello-2.1.95.tar.bz2 (or .gz) > > By the way, a Cygwin user wrote to the Texinfo list, and I ask

Re: yet another hello pretest

2006-11-10 Thread Bruno Haible
Jim, > I don't see > how you could be objecting to such an addition to hello's system.h. It's up to Karl to decide what he puts into hello's system.h. I only mentioned that these definitions can _in_general_ lead to "unused variable" warnings. Bruno

Re: yet another hello pretest

2006-11-10 Thread Jim Meyering
Bruno Haible <[EMAIL PROTECTED]> wrote: > Jim Meyering wrote: >> Better still, add this in system.h: >> >> #if ! ENABLE_NLS >> # undef textdomain >> # define textdomain(Domainname) /* empty */ >> # undef bindtextdomain >> # define bindtextdomain(Domainname, Dirname) /* empty */

Re: yet another hello pretest

2006-11-10 Thread Bruno Haible
Jim Meyering wrote: > Better still, add this in system.h: > > #if ! ENABLE_NLS > # undef textdomain > # define textdomain(Domainname) /* empty */ > # undef bindtextdomain > # define bindtextdomain(Domainname, Dirname) /* empty */ > #endif If you do this, you'll get "unused

Re: yet another hello pretest

2006-11-10 Thread Jim Meyering
Bruno Haible <[EMAIL PROTECTED]> wrote: > Paul Eggert wrote: >> 2. The "#if ENABLE_NLS" isn't needed, since gettext.h does the right >> thing anyway. > >> -#if ENABLE_NLS >>/* Set the text message domain. */ >>bindtextdomain (PACKAGE, LOCALEDIR); >>textdomain (PACKAGE); >> -#endif

Re: [bug-gnulib] yet another hello pretest

2006-11-10 Thread Bruno Haible
Paul Eggert wrote: > 2. The "#if ENABLE_NLS" isn't needed, since gettext.h does the right > thing anyway. > -#if ENABLE_NLS >/* Set the text message domain. */ >bindtextdomain (PACKAGE, LOCALEDIR); >textdomain (PACKAGE); > -#endif But with this, configuring with "./configure --d

Re: yet another hello pretest

2006-11-09 Thread Matthew Woehlke
Ben Pfaff wrote: Matthew Woehlke writes: Karl Berry wrote: the gnulib module exit, to ensure the existence of EXIT_SUCCESS. Isn't it part of some sufficiently-old standard so that it's not necessary/recommended? What is "it"? Using EXIT_SUCCESS, using gnulib to ensure that you have EXIT_*, us

Re: yet another hello pretest

2006-11-09 Thread Karl Berry
What is "it"? Using EXIT_SUCCESS, using gnulib to ensure that you have EXIT_*, using EXIT_* in general? "It" = Using EXIT_SUCCESS without using the gnulib exit module. Isn't EXIT_SUCCESS part of (or something) for a couple of decades now? Obviously it's no particular problem to pull in

Re: yet another hello pretest

2006-11-09 Thread Ben Pfaff
Matthew Woehlke <[EMAIL PROTECTED]> writes: > Karl Berry wrote: >>> the gnulib module exit, to ensure the existence of EXIT_SUCCESS. >> >> Isn't it part of some sufficiently-old standard so that it's not >> necessary/recommended? > > What is "it"? Using EXIT_SUCCESS, using gnulib to ensure that yo

Re: yet another hello pretest

2006-11-09 Thread Matthew Woehlke
Karl Berry wrote: the gnulib module exit, to ensure the existence of EXIT_SUCCESS. Isn't it part of some sufficiently-old standard so that it's not necessary/recommended? What is "it"? Using EXIT_SUCCESS, using gnulib to ensure that you have EXIT_*, using EXIT_* in general? I'm less sure

Re: yet another hello pretest

2006-11-09 Thread Karl Berry
Attached is a patch for hello.c. Thanks Eric, that's much cleaner. I installed it. the gnulib module exit, to ensure the existence of EXIT_SUCCESS. Isn't it part of some sufficiently-old standard so that it's not necessary/recommended? Solaris release that didn't support atexit

Re: yet another hello pretest

2006-11-09 Thread Karl Berry
A quick review. Thanks Paul, I installed that.

Re: yet another hello pretest

2006-11-09 Thread Paul Eggert
> ftp://alpha.gnu.org/gnu/hello/hello-2.1.95.tar.bz2 (or .gz) A quick review. 1. Here's a warning I observed on Solaris 8 with Sun C 5.8: source='hello.c' object='hello.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ cc -xarch=v9 -DLOCALEDIR=\"/usr/loc

Re: [bug-gnulib] yet another hello pretest

2006-11-09 Thread Bruno Haible
Eric Blake wrote: > 2006-11-09 Eric Blake <[EMAIL PROTECTED]> > > * hello.c (main): Use atexit, to avoid warning with 'gcc -Wall > -Werror'. > (my_exit): Delete, no longer needed. > I support this patch. Using 'atexit' leads to more maintainable code than pervasive use of 'my

Re: yet another hello pretest

2006-11-09 Thread Ben Pfaff
Eric Blake <[EMAIL PROTECTED]> writes: > + /* Even exiting has subtleties. The /dev/full device on GNU/Linux > + can be used for testing whether writes are checked properly. For > + instance, hello >/dev/null should exit unsuccessfully. On exit, s%dev/null%dev/full% > + if any wr

Re: yet another hello pretest

2006-11-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Karl Berry on 11/8/2006 5:55 PM: > In case anyone is not totally bored already, one more time for gettext > 0.16 (thanks Bruno)... > ftp://alpha.gnu.org/gnu/hello/hello-2.1.95.tar.bz2 (or .gz) Alas, it fails to build with 'gcc -Wall -Werr

yet another hello pretest

2006-11-08 Thread Karl Berry
In case anyone is not totally bored already, one more time for gettext 0.16 (thanks Bruno)... ftp://alpha.gnu.org/gnu/hello/hello-2.1.95.tar.bz2 (or .gz) By the way, a Cygwin user wrote to the Texinfo list, and I asked him to try make check in hello, and he did (in various modes), and all went wel

Re: another hello pretest

2006-10-16 Thread Eric Blake
Bruce Korb gmail.com> writes: > > On 10/16/06, Eric Blake byu.net> wrote: > > You need to make sure that 'hello --help --version' is different than > > `hello --version --help'; right now, --help always wins. > > As one would rightly expect. You want to be able to append ``--help'' > to what

Re: another hello pretest

2006-10-16 Thread Bruce Korb
On 10/16/06, Eric Blake <[EMAIL PROTECTED]> wrote: You need to make sure that 'hello --help --version' is different than `hello --version --help'; right now, --help always wins. As one would rightly expect. You want to be able to append ``--help'' to what you've typed so far, see the help, and

Re: another hello pretest

2006-10-16 Thread Eric Blake
Karl Berry freefriends.org> writes: > > I put another hello pretest at > ftp://alpha.gnu.org/gnu/hello/hello-2.1.93.tar.bz2 (and .gz). > > Besides the various patches, I tried to delete CR characters from the > program output for the tests. Let me know if it flies ...

another hello pretest

2006-10-15 Thread Karl Berry
I put another hello pretest at ftp://alpha.gnu.org/gnu/hello/hello-2.1.93.tar.bz2 (and .gz). Besides the various patches, I tried to delete CR characters from the program output for the tests. Let me know if it flies ... Thanks, Karl