Op 28-11-2012 21:50, Jonas Maebe schreef:

On 28 Nov 2012, at 21:36, Martin wrote:

It does not matter if I compile it with stdcall, cdecl, pascal. The below on a 
32 bit intel mac (fpc 2.6.0) always returns result in 2 registers (eax, edx)

Is there a way to change this (some declaration in the source, some switch)?

It's a bug that's fixed in trunk: 
http://wiki.freepascal.org/User_Changes_Trunk#Location_of_certain_function_result_types


As the author of pascalscript, I wasn't aware of this issue, however now I'm in a dilemma. FPC breaks things very often, and that url shows just one of these. If I want to fix this bug in Pascal Script, I have to undo the fix in 6-12 months again (or use version specific defines). I'm getting a bit frustrated with FPC changing things back and forward all the time (this isn't a new thing, this has been going on since I first ported it to FPC).

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to