bug-gnulib
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]