1 /* 2 ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 3 ** 4 ** This file is distributed under the terms listed in the document 5 ** "copying.dj", available from DJ Delorie at the address above. 6 ** A copy of "copying.dj" should accompany this file; if not, a copy 7 ** should be available from where this file was obtained. This file 8 ** may not be distributed without a verbatim copy of "copying.dj". 9 ** 10 ** This file is distributed WITHOUT ANY WARRANTY; without even the implied 11 ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 */ 13 14 /* Modified to use SETJMP_DJ_H rather than SETJMP_H to avoid 15 conflicting with setjmp.h. Ian Taylor, Cygnus support, April, 16 1993. */ 17 18 #ifndef _SETJMP_DJ_H_ 19 #define _SETJMP_DJ_H_ 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 typedef struct { 26 unsigned long eax; 27 unsigned long ebx; 28 unsigned long ecx; 29 unsigned long edx; 30 unsigned long esi; 31 unsigned long edi; 32 unsigned long ebp; 33 unsigned long esp; 34 unsigned long eip; 35 } jmp_buf[1]; 36 37 extern int setjmp(jmp_buf); 38 extern void longjmp(jmp_buf, int); 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif |