[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed support for C1X-style static_assert
From: |
Andy Moreton |
Subject: |
Re: proposed support for C1X-style static_assert |
Date: |
Thu, 05 May 2011 13:04:00 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) |
On Thu 05 May 2011, Bruno Haible wrote:
> Hi Paul,
>
>> it's also nice to support the standard syntax.
>
> Nice work, thanks. Just three remarks:
>
> - A doc update of doc/posix-headers/assert.texi would be useful.
>
> - Use of __ prefixed identifiers:
>> + struct __gl_verify_type {
>> ...
>> + int __gl_dummy; \
>> ...
>> + struct { unsigned int __gl_verify_error_if_negative: (R) ? 1 : -1; }
>
> Identifiers starting with __ are in the namespace of compiler and libc
> implementation. We've been using identifiers starting with _gl_ in
> gnulib for many years, with success: no collisions with compiler
> internals nor with third-party libraries and programs have appeared.
> Why change that? I would continue to consistently prefix gnulib
> internals with _gl_ (or _GL_ for the macros).
If you are being extra careful, the _GL_ prefix is also reserved. See
ISO/IEC 9899:1999 7.1.3 "Reserved identifiers" for details.
AndyM
- Re: proposed support for C1X-style static_assert, (continued)
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/05
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/05
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/06
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/22
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/22
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/29
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/29
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/29
Re: proposed support for C1X-style static_assert,
Andy Moreton <=