summaryrefslogtreecommitdiff
path: root/v4.0/src/TOOLS/BLD/INC/SETJMP.H
diff options
context:
space:
mode:
authorGravatar Mark Zbikowski2024-04-25 21:24:10 +0100
committerGravatar Microsoft Open Source2024-04-25 22:32:27 +0000
commit2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch)
tree80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/TOOLS/BLD/INC/SETJMP.H
parentMerge pull request #430 from jpbaltazar/typoptbr (diff)
downloadms-dos-main.tar.gz
ms-dos-main.tar.xz
ms-dos-main.zip
MZ is back!HEADmain
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/SETJMP.H')
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SETJMP.H35
1 files changed, 35 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/SETJMP.H b/v4.0/src/TOOLS/BLD/INC/SETJMP.H
new file mode 100644
index 0000000..6f74793
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/SETJMP.H
@@ -0,0 +1,35 @@
1/***
2*setjmp.h - definitions/declarations for setjmp/longjmp routines
3*
4* Copyright (c) 1985-1988, 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
15#ifndef NO_EXT_KEYS /* extensions enabled */
16 #define _CDECL cdecl
17#else /* extensions not enabled */
18 #define _CDECL
19#endif /* NO_EXT_KEYS */
20
21
22/* define the buffer type for holding the state information */
23
24#define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
25
26#ifndef _JMP_BUF_DEFINED
27typedef int jmp_buf[_JBLEN];
28#define _JMP_BUF_DEFINED
29#endif
30
31
32/* function prototypes */
33
34int _CDECL setjmp(jmp_buf);
35void _CDECL longjmp(jmp_buf, int);