[fpc-pascal] Re: Lo

2011-01-13 Thread _-jane-_
A simple but fully functional kludge to make lo compatible with Delphi is type lo=byte; Unfortunately for the similar cases of hi and swap you must provide a function which cannot be used in a manifest constant expression. ___ WEB.DE DSL D

[fpc-pascal] Endian issues when porting FPC programs from x86 to other platforms

2010-11-03 Thread _-jane-_
Hello! In order to address the endian problem I use some auxiliary types to access the entities: (* Standard types *) type t_32u=longint; // 32 bit unsigned t_bool=boolean; (* Endian types *) (*$a1 *) type t_intel_32u=object // Delphi forbids "packed object"; trusting $a1 instead...

[fpc-pascal] Initializing records and other complicated structures

2010-09-29 Thread _-jane-_
It seems that we need a new parameter modifier "out_non_finalize" since "out" includes a finalization. We had a similar discussion with "constref". Maybe we need a comprehensive method to describe calling conventions, see e.g. http://mantis.freepascal.org/view.php?id=16697 or the discussion abo