This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Using array_length macro outside function
- From: TAMUKI Shoichi <tamuki at linet dot gr dot jp>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 05 Feb 2019 15:17:11 +0900
- Subject: Re: Using array_length macro outside function
- References: <87a7jbpqqm.fsf@oldenburg2.str.redhat.com>
Hello Florian-san,
From: Florian Weimer <fweimer@redhat.com>
Subject: Re: Using array_length macro outside function
Date: Mon, 04 Feb 2019 15:34:09 +0100
> The other problem is that array_length (locales) is not a constant
> expression because a statement expression is never a constant
> expression. I had not considered these problems when I wrote the
> array_length macro.
>
> I would like to retain the verification that the macro argument is not a
> pointer. What do you think about the patch below?
Thank you. Applying your patch, I have confirmed that the test can be
compiled successfully.
Regards,
TAMUKI Shoichi