home *** CD-ROM | disk | FTP | other *** search
- /* setjmp.h
-
- Defines typedef and functions for setjmp/longjmp.
-
- Copyright (c) Borland International 1987,1988,1990,1991
- All Rights Reserved.
- */
-
- #ifndef __SETJMP_H
- #define __SETJMP_H
-
- #ifdef __DLL__
- #define _FAR far
- #else
- #define _FAR
- #endif
-
- #if __STDC__
- #define _Cdecl
- #else
- #define _Cdecl cdecl
- #endif
-
- #ifndef __PAS__
- #define _CType _Cdecl
- #else
- #define _CType pascal
- #endif
-
- typedef struct __jmp_buf {
- unsigned j_sp;
- unsigned j_ss;
- unsigned j_flag;
- unsigned j_cs;
- unsigned j_ip;
- unsigned j_bp;
- unsigned j_di;
- unsigned j_es;
- unsigned j_si;
- unsigned j_ds;
- } jmp_buf[1];
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if !defined( _Windows )
- void _CType longjmp(jmp_buf __jmpb, int __retval);
- int _CType setjmp(jmp_buf __jmpb);
- #else
- void far pascal longjmp( struct __jmp_buf far *__jmpb, int __retval );
- int far pascal setjmp( struct __jmp_buf far *__jmpb);
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-
-