1 #ifndef __SETJMP_H 2 #define __SETJMP_H 3 #pragma lib "/$M/lib/ape/libap.a" 4 5 typedef int jmp_buf[10]; 6 #ifdef _POSIX_SOURCE 7 typedef int sigjmp_buf[10]; 8 #endif 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 extern int setjmp(jmp_buf); 15 extern void longjmp(jmp_buf, int); 16 17 #ifdef _POSIX_SOURCE 18 extern int sigsetjmp(sigjmp_buf, int); 19 extern void siglongjmp(sigjmp_buf, int); 20 #endif 21 22 #ifdef __cplusplus 23 } 24 #endif 25 26 #endif /* __SETJMP_H */ 27