diff options
Diffstat (limited to 'private/oleauto/tools/win16/os2/inc/setjmp.h')
-rw-r--r-- | private/oleauto/tools/win16/os2/inc/setjmp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/private/oleauto/tools/win16/os2/inc/setjmp.h b/private/oleauto/tools/win16/os2/inc/setjmp.h new file mode 100644 index 000000000..afb2950c5 --- /dev/null +++ b/private/oleauto/tools/win16/os2/inc/setjmp.h @@ -0,0 +1,41 @@ +/*** +*setjmp.h - definitions/declarations for setjmp/longjmp routines +* +* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the machine-dependent buffer used by +* setjmp/longjmp to save and restore the program state, and +* declarations for those routines. +* [ANSI/System V] +* +****/ + +#ifndef _INC_SETJMP + +#ifndef __cplusplus + +#if (_MSC_VER <= 600) +#define __cdecl _cdecl +#define __far _far +#endif + +/* define the buffer type for holding the state information */ + +#define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */ + +#ifndef _JMP_BUF_DEFINED +typedef int jmp_buf[_JBLEN]; +#define _JMP_BUF_DEFINED +#endif + + +/* function prototypes */ + +int __cdecl setjmp(jmp_buf); +void __cdecl longjmp(jmp_buf, int); + +#endif /* _cplusplus */ + +#define _INC_SETJMP +#endif /* _INC_SETJMP */ |