freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] LLP64 model outside Win64


From: Werner LEMBERG
Subject: Re: [ft-devel] LLP64 model outside Win64
Date: Mon, 12 Feb 2018 07:07:03 +0100 (CET)

>>>
>>>   (void *)(((char *)0) + (x))
>>>
>>
>> Wow! Very cool!
>>
>>
>> I'm fairly sure that's undefined in C standard as well.

My first impression also...

> [...] You can only do pointer arithmetic within an allocate array.
> All else is undefined.  Which makes sense for same reasons that
> Roland mentioned (segmented architectures.)

I think we should just ignore such segmented architectures by default.
Instead, we should make `FT_UINT_TO_POINTER' configurable by the user
so that he or she has a chance to override it, should this be ever
necessary.


    Werer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]