On 11/15/2017 04:53 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.
>>
> 
> I mean, you are proposing that a lifetime of patching old codebases is
> preferable
> to a single one-minute change with literally no downsides. That outright
> contradicts the principle of least insanity.

No. I would suggest compiling libuv with a more modern standard (there
are GitHub issues and tickets suggesting c99 should be possible). If it
is possible, problem solved. Otherwise I would prefer to move libuv
forwards rather than moving HelenOS backwards or sideways.

Jakub

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

Reply via email to