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