setjumph.inc 995 B

12345678910111213141516171819202122232425262728
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2000-2002 by Jonas Maebe and other members of the
  4. Free Pascal development team
  5. SetJmp/Longjmp declarations
  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. type
  13. jmp_buf = packed record
  14. r1,r2,lr,r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,r24,r25,r26,r27,r28,r29,r30,r31,cr : dword;
  15. {$ifndef FPUNONE}
  16. f14,f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,f25,f26,f27,f28,f29,f30,f31 : double;
  17. {$endif}
  18. end;
  19. pjmp_buf = ^jmp_buf;
  20. function setjmp(var S : jmp_buf) : longint;[external name 'FPC_SETJMP'];
  21. procedure longjmp(var S : jmp_buf;value : longint);[external name 'FPC_LONGJMP'];