|
|
1.1 root 1: /***
2: *setjmp.h - definitions/declarations for setjmp/longjmp routines
3: *
4: * Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
5: *
6: *Purpose:
7: * This file defines the machine-dependent buffer used by
8: * setjmp/longjmp to save and restore the program state, and
9: * declarations for those routines.
10: * [ANSI/System V]
11: *
12: *******************************************************************************/
13:
14: #ifndef _INC_SETJMP
15:
16: #ifndef __cplusplus
17:
18:
19: #if (_MSC_VER <= 600)
20: #define __cdecl _cdecl
21: #endif
22:
23: /* define the buffer type for holding the state information */
24:
25: #ifndef _JMP_BUF_DEFINED
26: typedef int jmp_buf[6];
27: #define _JMP_BUF_DEFINED
28: #endif
29:
30:
31:
32:
33: /*
34: * _setjmp compiler intrinsic does not work with current Win32
35: * implementation so map it to setjmp
36: */
37: #define _setjmp setjmp
38:
39:
40:
41:
42:
43: /* function prototypes */
44:
45: int _setjmp(jmp_buf);
46: void longjmp(jmp_buf, int);
47:
48: #endif /* __cplusplus */
49:
50: #define _INC_SETJMP
51: #endif /* _INC_SETJMP */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.