summaryrefslogtreecommitdiff
path: root/fpcsrc/rtl/m68k/setjumph.inc
blob: 587434ce57e8349f5db1aa96faf1eb3c0ca08e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 1999-2000 by xxxx
    member of the Free Pascal development team

    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.

 **********************************************************************}

{**********************************************************************
          Declarations for SetJmp/LongJmp
 **********************************************************************}

Type
  jmp_buf = packed record
    fp : longint;                    { frame pointer     }
    sp : longint;                    { stack pointer     }
    pc : longint;                    { program counter   }
    aregs : array[0..3] of dword;    { address registers (a2,a3,a4,a5) }
  end;
  PJmp_buf = ^jmp_buf;

Function Setjmp (Var S : Jmp_buf) : longint;[external name 'FPC_SETJMP'];
Procedure longjmp (Var S : Jmp_buf; value : longint);[external name 'FPC_LONGJMP'];