gnulib-tool: unterminated substitute pattern

2006-10-31 Thread Perrog
Hi! I get a strange sed warning/error of "unterminated substitute pattern" while using gnulib-tool. I'm building bison and the bootstrapping process uses gnulib-tool. I manage to build bison completely, even of this warning occur. However, I wanted to check what gnulib-tool claims over. This is t

Re: getopt documentation

2006-10-31 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > 2006-10-31 Eric Blake <[EMAIL PROTECTED]> > > * lib/getopt_.h: Fix comments. Thanks, please install.

Re: mingw conflict between mkdtemp and sys_stat

2006-10-31 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 10/27/2006 9:09 AM: > Eric Blake byu.net> writes: > >> The second half, fixing mkdtemp to use the new tempname module and the >> existing sys_stat module, so that mkdtemp and mkstemp can coexist on >> mingw, still needs Bru

getopt documentation

2006-10-31 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This tripped me up; in order to fix a POSIX-compliance bug in M4, I had to switch over to using shortopts starting with '-', but the wrong documentation cost me some debug time. OK to commit? 2006-10-31 Eric Blake <[EMAIL PROTECTED]> * lib

Re: C++ support (3)

2006-10-31 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Make it compile in C++ mode. > * lib/full-write.c (full_rw): Add a cast. That looks OK to me, I guess. Perhaps Jim has an opinion about this sort of thing?

Re: C++ support (2)

2006-10-31 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > * lib/xalloc.h (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup) > [C++]: Add function template that provides result type propagation. I guess something like that is OK, though I prefer to put it into a C++ ghetto area of the code. As fo

C++ support (4)

2006-10-31 Thread Bruno Haible
The other change requires to add casts for xmalloc calls, and to move the 'struct slotvec' outside the function where it's currently defined - otherwise it is not a valid template parameter for the xrealloc template (and without the xrealloc template, one needs to add dozens of casts). Paul, what

C++ support (3)

2006-10-31 Thread Bruno Haible
This is one of 2 more changes needed for C++ compilation of GNU gettext without errors. Is this acceptable? 2006-10-29 Bruno Haible <[EMAIL PROTECTED]> Make it compile in C++ mode. * lib/full-write.c (full_rw): Add a cast. *** gnulib-20061026/lib/full-write.c2006-09-19 00

C++ support (2)

2006-10-31 Thread Bruno Haible
Here is a proposed patch to make assignments of the form buffer = xrealloc (buffer, new_bufsize); compile without errors or warnings in C++ mode, without need to add a cast. The trick for doing this is to notice that the expected type of the result is the type of the first argument. Unfortu

C++ support (1)

2006-10-31 Thread Bruno Haible
Hi, Compiling GNU gettext with a C++ compiler revealed a bug: an assignment between an 'int' variable and an 'enum' variable that was not intended. This confirms once again that the ability to compile a C package in C++ mode on at least one platform is useful. I'm therefore applying this patch. 2

Re: new module 'tsearch'

2006-10-31 Thread Bruno Haible
There were no objections, so I committed this new module. Bruno > 2006-10-22 Bruno Haible <[EMAIL PROTECTED]> > > * modules/tsearch: New file. > * lib/tsearch.h: New file. > * lib/tsearch.c: New file, from glibc-2.5 with small modifications. > * m4/tsearch.m4: New file.