`Word' data type et al._(re)

Mon, 16 Jun 1997 16:26:42 +0100 (BST)


On Mon, 16 Jun 1997 15:25:56 +0200 Frank Heckenbach  
wrote:

>
>Peter Gerwinski wrote:
>
>> I noticed a lot of confusion about Integer types in GNU Pascal.
[...]
>>       32       Integer      Word           [unsigned] int == long
>>       64       LongInt      LongWord       [unsigned] long long
>>
>> (BTW:  The number of bits is the same on all platforms, isn't it?)
[...]
>
>> I was told more than once that `Word' should have 16 bits (like in
>> Borland Pascal).  I made it 32 bits because this is the "natural"
>> size on a 32-bit system (like GPC), and it has the same size as
>> `Integer' (like in Borland Pascal;-).
>
>I think this is a good idea. However, for BP compatibility one might
>define Word as 16 bit in the bpcompat system unit or so, but this should
>not be the gpc default, IMHO.

In bpcompat's GPCTYPES unit, I have this;

{$ifdef _Borland_16_Bit_}
Type
Single    = __short__ Real;
Double    = Real;          
Extended  = __long__ Real;
ShortInt  = __byte__ Integer;
LongInt   = Integer;
Comp      = __longlong__ Integer;
Integer16 = __short__ Integer;
Word      = __unsigned__ Integer16;
{$endif _Borland_16_Bit_}

Best regards, The Chief 
Dr Abimbola A. Olowofoyeku (The African Chief, and the Great Elephant)
Author of:  Chief's Installer Pro v3.60 for Win16 and Win32.
Homepage:  http://ourworld.compuserve.com/homepages/African_Chief/
E-mail: laa12@cc.keele.ac.uk



The African Chief (laa12@cc.keele.ac.uk)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es