Hello,
I've tried to compile the following code with --delphi option toggled on, but the compiler reported tester.pas:17: error: reference expected, value given
program tester; uses gpc;
procedure CatchSignal(aSig : Integer); begin case aSig of 2, 3, 15 : {SigInt, SigQuit, SigTerm} begin end; end; end;
var OldSigInt : TSignalHandler; r,dummy:boolean;
begin
r:=InstallSignalHandler(SigInt,CatchSignal,true,false,OldSigInt,dummy); end.
Then I checked the declaration of InstallSignalHandler and tried the same with aSig's type changed to CInteger. It compiled fine, except when the --delphi switch was on, because then CInteger seemed to be unknown ;-(
Do you have any suggestions how to fix this problem?
Any help appreciated. I used the freshly uploaded beta gpc version 20041218, based on gcc-3.3.3.
Best,
Adam Naumowicz
====================================================================== Department of Applied Logic fax. +48 (85) 745-7662 Institute of Computer Science tel. +48 (85) 745-7559 (office) University of Bialystok e-mail: adamn@mizar.org Sosnowa 64, 15-887 Bialystok, Poland http://math.uwb.edu.pl/~adamn/ ======================================================================