[fpc-pascal] Calling C functions from FPC

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Jan 26 10:35:59 CET 2009


On 26 Jan 2009, at 11:22, dmitry boyarintsev wrote:

>> procedure cTest; cdecl; external;
> it's true for unix functions, but Carbon functions are using mwpascal
> convention, right?

mwpascal is the same as cdecl, except that it always passes "const"  
parameters that are record types by reference (because that's what  
MetroWerks Pascal, aka mwpascal, did).


Jonas



More information about the fpc-pascal mailing list