Sergey Poznyakoff wrote:
> If it is called before argp_parse it will
> surely coredump. But then, we cannot guarantee that whoever is using
> this interface will set program_name before calling error(), can we?
We need to document it somewhere, in error.h or argp.h.
Bruno
Bruno Haible <[EMAIL PROTECTED]> wrote:
> - Why do you use HAVE_PROGRAM_INVOCATION_NAME here, whereas argp.m4
> defines GNULIB_PROGRAM_INVOCATION_NAME ?
Yes, I meant GNULIB_PROGRAM_INVOCATION_NAME, of course.
> - If the #ifdef condition is true, you'll be using the
> program_invocation_name
Sergey Poznyakoff wrote:
> --- error.c 29 Aug 2006 16:58:34 - 1.46
> +++ error.c 9 Sep 2006 05:39:50 -
> @@ -92,9 +92,13 @@ extern void __error_at_line (int status,
> char *strerror_r ();
> # endif
>
> +#ifdef HAVE_PROGRAM_INVOCATION_NAME
> +# define program_name program_invoca