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