On 11/15/2017 04:43 PM, Jiří Zárevúcky wrote:
> On 15 November 2017 at 16:36, Jakub Jermář <[email protected]> wrote:
>> On 11/15/2017 04:21 PM, Jiří Zárevúcky wrote:
>>>> 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. ;)
>>
>> I don't like that a third-party C89 lib is forcing compromises onto
>> HelenOS. I think the effort should go in the opposite direction: make
>> things compatible with HelenOS (and the standards it uses) rather than
>> making HelenOS compatible with whatever limitations third-party code can
>> impose.
>>
> 
> 1. How is this a compromise?

It is a compromise / concession by virtue of forcing HelenOS to stop
using a standard language construct in favor of a non-standard one even
though there is no other reason to do that.

> 2. By that logic, we should delete libposix and never even consider
> the possibility of building existing POSIX code.

If that stopped at the line drawn by libposix, I would not object. But
here it is creeping into our libc.

Jakub

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

Reply via email to