Paul Eggert <[EMAIL PROTECTED]> wrote:
...
> How about the following patch instead?  I installed it in gnulib and
> coreutils (though I suspect it may not be the last word, with all
> these screwy compilers to test....).
>
> 2005-09-23  Paul Eggert  <[EMAIL PROTECTED]>
>
>       * verify.h (GL_CONCAT0, GL_CONCAT): Remove.
>       (verify): Don't use the __LINE__ trick, as it doesn't work in general.
>       Instead, declare a function that returns a pointer to an array,
>       and use verify_type__ to declare the size of the array.
>       Problem and germ of a solution reported by Bruno Haible.
...
>  # define verify(R) \
> -    extern verify_type__ (R) GL_CONCAT (verify_function_, __LINE__) (void)
> +    extern int (* verify_function__ (void)) [sizeof (verify_type__ (R))]

Clever!
I hope it works.


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to