[fpc-devel]Possible Compiler bug in FPC 1.04 under Win32?

murphy murphy at dev0.de
Wed Jan 17 14:05:31 CET 2001


Hi!

I think i got a solution for this problem...
> type
>   TPDF_get_majorversion =function:Integer cdecl;
> var
>   FPDF_get_majorversion :TPDF_get_majorversion;
> 
> function PDF_get_majorversion:Integer;
> begin
>   PDF_get_majorversion:=FPDF_get_majorversion;
> end;

type
  TPDF_get_majorversion =function:Integer cdecl;
var
  FPDF_get_majorversion :TPDF_get_majorversion;

function PDF_get_majorversion:Integer;
begin
  PDF_get_majorversion:=FPDF_get_majorversion();
end;

The parentices must be added when calling the function. After that 
modification the compiler compiles the source code...

Bye, Torsten

Is is a compiler-bug?

_,,,o¿o,,,_




More information about the fpc-devel mailing list