mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 07:49:12 +02:00
* new bug
This commit is contained in:
parent
853c78c4b6
commit
d71111e4be
23
tests/webtbs/tw2758.pp
Normal file
23
tests/webtbs/tw2758.pp
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2758 }
|
||||||
|
{ Submitted by "marco" on 2003-10-31 }
|
||||||
|
{ e-mail: }
|
||||||
|
Type
|
||||||
|
sigcontextrec=record end;
|
||||||
|
SignalHandler = Procedure(Sig : Longint);cdecl;
|
||||||
|
PSignalHandler = ^SignalHandler;
|
||||||
|
TSigAction = procedure(Sig: Longint; SigContext: SigContextRec);cdecl;
|
||||||
|
|
||||||
|
SigActionRec = packed record // this is temporary for the migration
|
||||||
|
sa_handler : signalhandler;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure signaltorunerror(Sig: Longint; SigContext: SigContextRec);cdecl;
|
||||||
|
begin end; // tsigaction style
|
||||||
|
|
||||||
|
|
||||||
|
var r : sigactionrec;
|
||||||
|
|
||||||
|
begin
|
||||||
|
r.sa_handler:=signalhandler(@signaltorunerror);
|
||||||
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user