setjumph.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by xxxx
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {**********************************************************************
  13. Declarations for SetJmp/LongJmp
  14. **********************************************************************}
  15. Type
  16. jmp_buf = packed record
  17. fp : longint; { frame pointer }
  18. sp : longint; { stack pointer }
  19. pc : longint; { program counter }
  20. aregs : array[0..3] of dword; { address registers (a2,a3,a4,a5) }
  21. end;
  22. PJmp_buf = ^jmp_buf;
  23. Function Setjmp (Var S : Jmp_buf) : longint;
  24. Procedure longjmp (Var S : Jmp_buf; value : longint);
  25. {
  26. $Log$
  27. Revision 1.5 2004-05-05 21:26:34 florian
  28. * some m68k and amiga related stuff fixed
  29. Revision 1.4 2002/10/20 11:53:14 carl
  30. * make the jmp_buf record packed, just in case
  31. Revision 1.3 2002/09/07 16:01:20 peter
  32. * old logs removed and tabs fixed
  33. }