[fpc-pascal] Converting C's bit field struct

tom_at_work tom_at_work at gmx.at
Wed Aug 13 13:36:52 CEST 2008


Hello,

Am 13.08.2008 um 13:23 schrieb Vincent Snijders:

> Michael Van Canneyt schreef:
>> On Wed, 13 Aug 2008, leledumbo wrote:
>>> Found on the net that Pascal doesn't provide it :-((
>>> What if FPC creates it as an extension =)?
>> FPC has it, but only in MacPas mode.
>>
>
> I copied the example program from: http://qc.codegear.com/wc/ 
> qcmain.aspx?d=56480
>
> Added {$mode delphi} or {$mode objfpc} and the program compiled  
> without errors.
>

Bitpacked records have been implemented and/or greatly improved for  
all platforms some time ago by Jonas; there were some problems with  
the "old" implementation iirc. Bitpacked records are also supported  
in other modes than macpas mode, however I do not know whether it has  
been intentional to enable them in Delphi mode.

Regards,
   Thomas



More information about the fpc-pascal mailing list