setjumph.inc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {******************************************************************************
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2000-2002 by Jonas Maebe and other members of the
  5. Free Pascal development team
  6. SetJmp/Longjmp declarations
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. ******************************************************************************}
  13. type
  14. jmp_buf = packed record
  15. ProgramCounter,
  16. StackPointer,
  17. BasePointer:Pointer;
  18. end;
  19. Pjmp_buf = ^jmp_buf;
  20. function setjmp(var S:jmp_buf):longint;
  21. procedure longjmp(var S:jmp_buf;value:longint);
  22. {
  23. $Log$
  24. Revision 1.3 2003-01-01 18:24:41 mazen
  25. * just put register pointers
  26. Revision 1.2 2002/11/24 18:19:44 mazen
  27. + setjmp and longjmp
  28. Revision 1.1 2002/11/16 20:10:31 florian
  29. + sparc specific rtl skeleton added
  30. }