[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] non-null declarations
From: |
Bruno Haible |
Subject: |
Re: [PATCH] non-null declarations |
Date: |
Thu, 10 Dec 2009 18:12:58 +0100 |
User-agent: |
KMail/1.9.9 |
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));
> 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.
Bruno
Re: [PATCH] non-null declarations, Eric Blake, 2009/12/10
Re: [PATCH] non-null declarations, Bruno Haible, 2009/12/10