mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-19 06:43:06 +02:00
29 lines
860 B
PHP
29 lines
860 B
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2013 the Free Pascal development team
|
|
|
|
SetJmp/Longjmp declarations
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************}
|
|
|
|
Type
|
|
jmp_buf = packed record
|
|
// bx,si,di: Word;
|
|
bp,sp: Word;
|
|
ip: Word;
|
|
{$ifdef FPC_X86_CODE_FAR}
|
|
cs: Word;
|
|
{$endif FPC_X86_CODE_FAR}
|
|
end;
|
|
PJmp_buf = ^jmp_buf;
|
|
|
|
Function Setjmp (Var S : Jmp_buf) : smallint; [external name 'FPC_SETJMP'];
|
|
Procedure longjmp (Var S : Jmp_buf; value : smallint); [external name 'FPC_LONGJMP'];
|