Re: gnulib and C++

2010-02-19 Thread Bruno Haible
John W. Eaton wrote: > If I add "using gnulib::open;" inside the "#ifdef __cplusplus" block, > ... > then I don't even have to prefix all of the uses of open in my code > with gnulib::. This seems like the best solution for me. A good idea. Unfortunately I cannot see how to make it work: This pro

Re: gnulib and C++

2010-02-19 Thread Bruno Haible
John W. Eaton wrote: > Maybe I'm missing something, but what happens if @GNULIB_OPEN@ is 0? > It doesn't look like we get the symbol inside the gnulib namespace in > that case. Yes. This is intentional. When @GNULIB_OPEN@ expands to 0, it means that the programmer has not asked for the function 'o

Gnulib TP template out of date?

2010-02-19 Thread Colin Watson
Hi, While looking through my Debian bug reports, I came across http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564181, and went to check whether the corresponding updates had been applied to the PO file held by the TP. The translator had indeed updated the PO file there as I requested. Unfortun

Re: gnulib and C++

2010-02-19 Thread John W. Eaton
On 19-Feb-2010, I wrote: | To handle all the cases, I find that I need to write | | #ifdef __cplusplus | namespace gnulib | { | int (*const open) (const char *filename, int flags, ...) = | # if @GNULIB_OPEN@ | # if @REPLACE_OPEN@ | ::rpl_open; | # else | ::open; |

Re: gnulib and C++

2010-02-19 Thread John W. Eaton
On 18-Feb-2010, Bruno Haible wrote: | Ralf proposes: | > I suggest you could | > produce a helper header to #undef them again; you could even do that | > automatically during bootstrap with above. Then only a portability | > layer would need to avoid using these symbols in another namespace. | |

Re: sharutils configuration

2010-02-19 Thread Bruce Korb
Bruno Haible wrote: > Bruce Korb wrote: >>> ${glib} --import ${gnulib_libs} >>> >>> ( echo >>> echo '## begin sharutils stuff' >>> echo >>> echo "EXTRA_DIST += ${extra_libs}" >>> ) >> lib/Makefile.am >> yielding this as the end of lib/Makefile.am: >> >>> ## begin sharutils stuff >>> >>> EXTRA

Re: sharutils configuration

2010-02-19 Thread Bruno Haible
Bruce Korb wrote: > > ${glib} --import ${gnulib_libs} > > > > ( echo > > echo '## begin sharutils stuff' > > echo > > echo "EXTRA_DIST += ${extra_libs}" > > ) >> lib/Makefile.am > > yielding this as the end of lib/Makefile.am: > > > ## begin sharutils stuff > > > > EXTRA_DIST += \ > >

new gnulib-tool option --find

2010-02-19 Thread Bruno Haible
Bruce Korb wrote: > ... doesn't get installed by gnulib. It seems like > md5.[ch] ought to be, but I can't determine which module they belong > to. It's the second time that someone reports difficulties in locating a module, given the file name. I'm adding a gnulib-tool option --find, and a docu