Mattias Gaertner wrote:
> On Sat, 06 May 2006 20:54:54 +0330
> "roozbeh gholizadeh" <[EMAIL PROTECTED]> wrote:
> 
>> On Fri, 05 May 2006 15:33:58 +0330, Peter Vreman <[EMAIL PROTECTED]>  
>> wrote:
>>
>>>> Hi,
>>>> lots of types in lcltypes are declared as packed,which i dont know why,
>>>> as far as i know lots of them are similar to types with almost exact  
>>>> name
>>>>  from windows unit,but as you look at windows unit,none of them are
>>>> packed.
>>>> also almost all of these records are by itself 2byte or 4byte
>>> aligned,ie > removing packed will not influence them.
> 
> 2byte aligned?
> I thought, a record on 32bit machines is always 4 byte aligned, isn't?

No. It depends on the elements the record contains. If a record contains only
bytes, it will be only 1 byte aligned except if you set recordalignmin to 2 or
whatever.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to