Re: gcc warning in argmatch

2006-10-19 Thread Bruno Haible
Paul Eggert wrote: > but can you please hoist the call to gettext > outside the conditional? That is a tad easier for me to read and > typically generates more-compact code. Something like this: > > error (0, 0, > _(problem == -1 >? "invalid argument %s for %s" >

argp, strndup and MinGW

2006-10-19 Thread Daniel Martin
Hi, Basically I want to use argp but I also want to produce windows binaries. So I need to use gnulib. I've been trying to cross-compile from ix86-pc-linux-gnu to i386-mingw32. I've been having some problems: 1. /bin/sh ../../libtool --tag=CC --mode=compile i386-mingw32-gcc -DHAVE_CONFIG_H -I.

Re: gcc warning in argmatch

2006-10-19 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > ! error (0, 0, > ! (problem == -1 > ! ? _("invalid argument %s for %s") > ! : _("ambiguous argument %s for %s")), > ! quotearg_n_style (0, ARGMATCH_QUOTING_STYLE, value), >quote_n (1, context)); That looks good, thanks, bu

Re: [bug-gnulib] [patch] gnulib-tool --local-dir

2006-10-19 Thread Bruno Haible
Charles Wilson wrote: > -*/ ) sourcebase=`echo "$local_gnulib_dir" | sed -e > "$sed_trimtrailingslashes"` ;; > +*/ ) local_gnulib_dir=`echo "$local_gnulib_dir" | sed -e > "$sed_trimtrailingslashes"` ;; Thanks, applied. Bruno

[Bug-gnuts] URGENT!

2006-10-19 Thread Everett Rivera
You've Seen Them On TV... You've Read About Them In The Papers Now you Can Order it From our online SHOP! MX-MAN HAS HELPED OVER 1,000,000 MEN AROUND THE WORLD,GAIN I'N'C'H'E'S... Within the first 2 months 94% of subjects studied had reported noticable gains of 2cm - 6cm. 100% Satisf

make 'lock' usable in a mixed C/C++ world

2006-10-19 Thread Bruno Haible
The mingw port of GNU gettext now needs this. 2006-10-18 Bruno Haible <[EMAIL PROTECTED]> * lock.h [C++]: Wrap definitions in extern "C". *** gnulib-20061012/lib/lock.h 2006-08-15 13:35:30.0 +0200 --- gnulib-20061012-modified/lib/lock.h 2006-10-19 04:41:44.0 +0200

gnulib-tool: one more AC_LIBOBJ related fix

2006-10-19 Thread Bruno Haible
Hi, AC_LIBOBJ removes duplicates but our replacement doesn't. This matters when building shared libraries on platforms like MacOS X and mingw. (For example, if you need both getline and getdelim, getdelim.o will be added twice.) Here is a fix. 2006-10-18 Bruno Haible <[EMAIL PROTECTED]>

tweak findprog.c

2006-10-19 Thread Bruno Haible
Hi, I applied this, to fix a gcc warning. 2006-10-18 Bruno Haible <[EMAIL PROTECTED]> * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning. *** gnulib-20061012/lib/findprog.c 2006-09-19 00:51:16.0 +0200 --- gnulib-20061012-modified/lib/findprog.c 2006

gcc warning in argmatch

2006-10-19 Thread Bruno Haible
Hi, The gcc 4.1 option -Wformat=2 appears to be useful. The only warning I get with it is: argmatch.c:140: warning: format not a string literal, argument types not checked Moving the conditional expression into the function call allows gcc to do format string checking, and the warning disappea

Re: untranslated strings in xstrtol.h

2006-10-19 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > So, what should we do about the untranslated strings in xstrtol.h? > Is it safe to make xstrtol depend on gettext-h, to pull in gettext.h > in a header? I think so. I installed this: 2006-10-19 Paul Eggert <[EMAIL PROTECTED]> * lib/xstrtol.h:

Re: strftime.c problem on dietlibc

2006-10-19 Thread Paul Eggert
Thanks for the bug report; I installed the fix to gnulib.