Mail Archives: djgpp-workers/2000/04/03/08:01:33
>
>
> On Mon, 3 Apr 2000, Martin Stromberg wrote:
>
> > > Does the standard actually *require* the prototypes to
> > > include `restrict'?
> >
> > That's my interpretation.
>
> Yes, but is there anything in the standard, besides the prototypes it
> shows, that can back up this interpretation?
>
> > Besides, why would they put the word there
> > if it wasn't required?
>
> The prototype in the standard is meant to document the function. As
> such, it is perfectly possible to have `restrict' there, because it
> explains that the function should behave in a manner compatible with that
> declaration.
>
> But whether the header files supplied with the library must actually use
> `restrict' might be a different matter.
>
> Compare this with `const': if string.h says this:
>
> size_t strlen (char *);
>
> is it in violation of the standard? I wonder.
>
I say it is.
Right,
MartinS
- Raw text -