[haiku-development] Re: ptrdiff_t and size_t in Haiku/GCC
- From: Joseph Prostko <joe.prostko+haiku@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 25 Jun 2009 15:04:35 -0400
On Thu, Jun 25, 2009 at 2:38 PM, Ingo Weinhold<ingo_weinhold@xxxxxx> wrote:
>
> -------- 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
>
> "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
>
Okay, thanks for the clarification. I will leave them the way they
are. I see what you mean now as I grep through some more files.
Perhaps I should do some reading on differences between architectures
so I don't have to ask what must sound like questions with obvious
answers. :)
- joe
Other related posts: