* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / include / setjmp.h
blob162743bd28d38d30b9a33965e9dd6c71c159aa3f
2 #ifndef __SETJMP_H
3 #define __SETJMP_H
5 #include <features.h>
7 /*
8 * I know most systems use an array of ints here, but I prefer this - RDB
9 */
11 typedef struct
13 unsigned int pc;
14 unsigned int sp;
15 unsigned int bp;
16 unsigned int si;
17 unsigned int di;
18 } jmp_buf[1];
20 int _setjmp __P((jmp_buf env));
21 void _longjmp __P((jmp_buf env, int rv));
23 /* LATER: Seems GNU beat me to it, must be OK then :-)
24 * Humm, what's this about setjmp being a macro !?
25 * Ok, use the BSD names as normal use the ANSI as macros
28 #define setjmp(a_env) _setjmp(a_env)
29 #define longjmp(a_env, a_rv) _longjmp(a_env, a_rv)
30 #endif