Basil L. Contovounesios wrote:
> > +# define _GL_ATTRIBUTE_ACCESS_READ_ONLY(args) \
> > + __attribute__ ((__access__ (__read_only__, args)))
>
> I don't think this supports the 2-argument case where the optional
> size-index is included, right?
Right. It sounds like one needs to define this macro as
# define _GL_ATTRIBUTE_ACCESS_READ_ONLY(args) \
_GL_ATTRIBUTE_ACCESS_READ_ONLY_AUX args
# define _GL_ATTRIBUTE_ACCESS_READ_ONLY_AUX(...) \
__attribute__ ((__access__ (__read_only__, __VA_ARGS__)))
Bruno