bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] non-null declarations


From: Paolo Bonzini
Subject: Re: [PATCH] non-null declarations
Date: Thu, 10 Dec 2009 18:24:31 +0100

On Thu, Dec 10, 2009 at 18:12, Bruno Haible <address@hidden> wrote:
> Paolo Bonzini wrote:
>> do you plan on adding 2-argument versions of the macro, such as
>> _GL_ARG_NONNULL2?
>
> The macro already supports multiple parameter indices. Example:
>
> extern int scandir (const char *dir, struct dirent ***namelist,
>                    int (*filter) (const struct dirent *),
>                    int (*cmp) (const struct dirent **, const struct dirent 
> **))
>     _GL_ARG_NONNULL ((1, 2, 4));

Good, then accept4 has to be fixed to use ((2, 3)). :-)

>> With OpenGL identifiers starting with GL it's a tough call anyway,
>> especially for preprocessor identifiers (for others OpenGL uses camel
>> case).
>
> OpenGL macro names start with GL_. So if we choose the prefix _GL_ we're
> not likely to collide.

What about internal OpenGL macro names?  I would not be surprised if
they start with _GL_.

Paolo




reply via email to

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