On 15 November 2017 at 15:59, Vojtech Horky <[email protected]> wrote:
> 2017-11-15 15:49 GMT+01:00 Jiří Zárevúcky <[email protected]>:
>> On Nov 15, 2017 15:20, "Ondřej Hlavatý" <[email protected]> wrote:
>>> strictly speaking, couldn't you define "restrict" a macro in the same
>>> way then? ;)
>> You couldn't. "restrict" is a legal identifier in C89, and existing code can
>> use it e.g. as a regular variable/function name. Identifiers starting with
>> two underscores are reserved, so the same problem doesn't apply for
>> __restrict__.
> Makes sense, thanks! Should be probably stated in the commit message ;-)
>

Yes it should. :) It didn't occur to me at the moment.

> Out of curiosity, which C89-only code is being compiled against libposix?
>

libuv compiles as C89. It would probably work just fine as C99, but as restrict
shows, compatibility between different C revisions is not a 100% thing, so
I'd rather fix the headers once, than review and patch each legacy codebase
individually. We don't have many ports right now, but as our libraries improve,
that should change. ;)

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to