1 /* 2 * Copyright (C) 1991 DJ Delorie 3 * All rights reserved. 4 * 5 * Redistribution, modification, and use in source and binary forms is permitted 6 * provided that the above copyright notice and following paragraph are 7 * duplicated in all such forms. 8 * 9 * This file is distributed WITHOUT ANY WARRANTY; without even the implied 10 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 */ 12 13 /* Modified to use SETJMP_DJ_H rather than SETJMP_H to avoid 14 conflicting with setjmp.h. Ian Taylor, Cygnus support, April, 15 1993. */ 16 17 #ifndef _SETJMP_DJ_H_ 18 #define _SETJMP_DJ_H_ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 typedef struct { 25 unsigned long eax; 26 unsigned long ebx; 27 unsigned long ecx; 28 unsigned long edx; 29 unsigned long esi; 30 unsigned long edi; 31 unsigned long ebp; 32 unsigned long esp; 33 unsigned long eip; 34 } jmp_buf[1]; 35 36 extern int setjmp(jmp_buf); 37 extern void longjmp(jmp_buf, int); 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif 44