setjump.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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;
  15. asm
  16. {$warning FIXME!!!!}
  17. end;
  18. procedure longjmp(var S : jmp_buf;value : longint);assembler;
  19. asm
  20. {$warning FIXME!!!!}
  21. end;
  22. {
  23. $Log$
  24. Revision 1.3 2002-08-10 17:14:36 jonas
  25. * various fixes, mostly changing the names of the modifies registers to
  26. upper case since that seems to be required by the compiler
  27. Revision 1.2 2002/07/30 17:29:53 florian
  28. + dummy setjmp and longjmp added
  29. + dummy implemtation of the destructor helper
  30. Revision 1.1 2002/07/28 20:43:49 florian
  31. * several fixes for linux/powerpc
  32. * several fixes to MT
  33. }