Re: [PATCH] support ptrdiff_t if it has the same storage size as int, but does not alias it

doyle <[email protected]> Fri, 10 Oct 2025 16:15:30 -0500
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
I know this message isn't remotely about the topic at hand, but didn't 
know how else to handle this. My name is Jennifer Whisenant. I am the 
daughter of Doyle Whisenant, who was a member of this group. He passed 
away on August 30, 2025. I accessed his email and found these group 
messages. I just wanted to inform everyone of his passing. Thank you for 
your time.



On 10/9/2025 5:21 PM, 'Robin Haberkorn' via scintilla-interest wrote:
> On Fri Oct 10, 2025 at 00:08:54 GMT +03, Neil wrote:
>> Still looks to be too much of a change when a simple -D__HAIKU__ can avoid
>> most of it. It increases the proportion of code in headers leading to worse
>> build times and is a bad direction to move in.
> Even if we could assume that ptrdiff_t is always long on 32-bit Haiku
> and therefore doesn't alias int that would be a lot trickier on NetBSD where
> apparently some ports use long and others int.
> Also, do we really know that on Haiku? They support armv7 as well.
>
> Am I supposed to write some kind of custom Autoconf compile test to check
> for the aliasability of ptrdiff_t with int if sizeof(ptrdiff_t) == sizeof(int)
> and pass in -D__HAIKU__ on all platforms that do?
> Ugly, but possible. Then we should at the very least give it a more
> neutral name like RUNSTYLES_NEEDS_PTRDIFF or something.
>
> Robin
>

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/e6aee3e1-4a21-433d-afea-620f2692b86d%40gmail.com.