Re: __func__

2008-03-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Simon Josefsson on 3/4/2008 7:39 AM: | | However, what do you think about this? | | /Simon | |>From 232f8a7255f8addd9724156d7d245b51a7feb72e Mon Sep 17 00:00:00 2001 | From: Simon Josefsson <[EMAIL PROTECTED]> | Date: Tue, 4 Mar 2008 15:3

Re: __func__

2008-03-04 Thread Bruno Haible
Simon Josefsson wrote: > However, what do you think about this? Looks all fine to me. > Hm. As far as I can tell, AC_CHECK_DECLS is not restricted to > functions, the autoconf manual says "If SYMBOL (a function or a > variable) is not declared ...". Ah indeed. It says this when talking about AC

Re: assert.h replacement

2008-03-04 Thread Simon Josefsson
Eric Blake <[EMAIL PROTECTED]> writes: > Simon Josefsson josefsson.org> writes: > >> Ah, ok, I thought you talked about the existing 'assert' module in >> gnulib, which looks unrelated to what you are proposing. > > I'm actually thinking that that it would be better to make the > existing assert

Re: assert.h replacement

2008-03-04 Thread Ben Pfaff
Eric Blake <[EMAIL PROTECTED]> writes: > Simon Josefsson josefsson.org> writes: >> Couldn't a replacement assert.h look like: >> >> #include >> #include "progname.h" >> >> #ifdef NDEBUG >> # define assert(e) ((void) 0) >> #else >> # define assert(e) \

Re: assert.h replacement (was: Re: __func__)

2008-03-04 Thread Eric Blake
Simon Josefsson josefsson.org> writes: > Ah, ok, I thought you talked about the existing 'assert' module in > gnulib, which looks unrelated to what you are proposing. I'm actually thinking that that it would be better to make the existing assert module serve the two orthogonal purposes (provide

assert.h replacement (was: Re: __func__)

2008-03-04 Thread Simon Josefsson
Eric Blake <[EMAIL PROTECTED]> writes: > According to Simon Josefsson on 3/3/2008 9:07 AM: > |> I like the idea. I would also like to see the assert module use it, if > the > |> platform's assert() lacks __func__ information as required by C99/POSIX > 2001. > | > | How can that be implemented? T

Re: __func__

2008-03-04 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> Ok to push? > > 3 nits: > >> +A small function is: >> + >> [EMAIL PROTECTED] >> +#include >> +... >> +printf ("%s: something happened\n", __func__); >> [EMAIL PROTECTED] smallexample > > I don't see a function here. Did you mean

Re: [patch] tar.1.19 changes needed for VMS so far.

2008-03-04 Thread James Youngman
On Tue, Mar 4, 2008 at 1:56 AM, John E. Malmberg <[EMAIL PROTECTED]> wrote: > First I would need to find out what a VPATH build is. A VPATH build is one where the sources and object files live in different directories. For example: mkdir compile tar zxf /tmp/blah.-1.0.tar.gz cd compile ../blah