[haiku-development] Re: ptrdiff_t and size_t in Haiku/GCC
- From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 25 Jun 2009 20:38:41 +0200
-------- Original-Nachricht --------
> Datum: Thu, 25 Jun 2009 13:23:01 -0400
> Von: Joseph Prostko <joe.prostko+haiku@xxxxxxxxx>
> While looking through the target headers for GCC, I noticed that the
> language data type macros for ptrdiff_t and size_t are defined as
> follows for Haiku:
>
> #define SIZE_TYPE "long unsigned int"
>
> #define PTRDIFF_TYPE "long int"
>
> Should these be "unsigned int" and "int" respectively? This mostly
> came to mind due to the new wchar changes, which had me looking
> through these files a bit. The defines of "unsigned int" and "int"
> seem like the most common setting for other operating systems, but I
> figured I'd ask around in case I'm overlooking something obvious.
"long" works for both 32 and 64 bit architectures -- in fact they have to be
"long" on 64 bit architectures -- so changing it wouldn't do any good;
massively break binary compatibility even.
CU, Ingo
Other related posts: