2 *setjmp.h - definitions/declarations for setjmp/longjmp routines
4 * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
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.
12 *******************************************************************************/
15 #ifndef NO_EXT_KEYS /* extensions enabled */
17 #else /* extensions not enabled */
19 #endif /* NO_EXT_KEYS */
22 /* define the buffer type for holding the state information */
24 #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
26 #ifndef _JMP_BUF_DEFINED
27 typedef int jmp_buf[_JBLEN];
28 #define _JMP_BUF_DEFINED
32 /* function prototypes */
34 int _CDECL setjmp(jmp_buf);
35 void _CDECL longjmp(jmp_buf, int);