home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / qc25 / include / setjmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-25  |  898 b   |  38 lines

  1. /***
  2. *setjmp.h - Definitionen/Deklarationen für setjmp/longjmp-Routinen
  3. *
  4. *    Copyright (c) 1985-1990, Microsoft Corporation.  Alle Rechte vorbehalten.
  5. *
  6. * Zweck:
  7. *    Diese Datei definiert den maschinenabhängigen Zwischenspeicher, der von
  8. *    setjmp/longjmp zum Speichern und Wiederherstellen des Programmstatus
  9. *    benutzt wird sowie die Deklarationen für diese Routinen.
  10. *    [ANSI/System V]
  11. *
  12. ***/
  13.  
  14. #if defined(_DLL) && !defined(_MT)
  15. #error _DLL kann ohne _MT nicht definiert werden
  16. #endif
  17.  
  18. #ifdef _MT
  19. #define _FAR_ _far
  20. #else
  21. #define _FAR_
  22. #endif
  23.  
  24. /* Zwischenspeichertyp zum Speichern der Statusinformation bestimmen */
  25.  
  26. #define _JBLEN    9  /* bp, di, si, sp, ret addr, ds */
  27.  
  28. #ifndef _JMP_BUF_DEFINED
  29. typedef  int  jmp_buf[_JBLEN];
  30. #define _JMP_BUF_DEFINED
  31. #endif
  32.  
  33.  
  34. /* Funktionsprototypen */
  35.  
  36. int  _FAR_ _cdecl setjmp(jmp_buf);
  37. void _FAR_ _cdecl longjmp(jmp_buf, int);
  38.