setjump.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2002 by Jonas Maebe and other members of the
  5. Free Pascal development team
  6. SetJmp and LongJmp implementation for exception handling
  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. { the necessary code can be copied from the linux kernel sources }
  14. function setjmp(var S : jmp_buf) : longint;assembler;[Public, alias : 'FPC_SETJMP'];
  15. asm
  16. {$warning FIXME!!!!}
  17. end;
  18. procedure longjmp(var S : jmp_buf;value : longint);assembler;[Public, alias : 'FPC_LONGJMP'];
  19. asm
  20. {$warning FIXME!!!!}
  21. end;
  22. {
  23. $Log$
  24. Revision 1.5 2002-09-07 16:01:26 peter
  25. * old logs removed and tabs fixed
  26. Revision 1.4 2002/08/31 14:27:40 florian
  27. + public and alias directive added to *jmp
  28. Revision 1.3 2002/08/10 17:14:36 jonas
  29. * various fixes, mostly changing the names of the modifies registers to
  30. upper case since that seems to be required by the compiler
  31. Revision 1.2 2002/07/30 17:29:53 florian
  32. + dummy setjmp and longjmp added
  33. + dummy implemtation of the destructor helper
  34. Revision 1.1 2002/07/28 20:43:49 florian
  35. * several fixes for linux/powerpc
  36. * several fixes to MT
  37. }