Search
lxdream.org :: lxdream/test/include/machine/setjmp-dj.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/machine/setjmp-dj.h
changeset 185:6755a04c447f
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/machine/setjmp-dj.h Tue Jul 11 01:35:27 2006 +0000
1.3 @@ -0,0 +1,44 @@
1.4 +/*
1.5 +** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
1.6 +**
1.7 +** This file is distributed under the terms listed in the document
1.8 +** "copying.dj", available from DJ Delorie at the address above.
1.9 +** A copy of "copying.dj" should accompany this file; if not, a copy
1.10 +** should be available from where this file was obtained. This file
1.11 +** may not be distributed without a verbatim copy of "copying.dj".
1.12 +**
1.13 +** This file is distributed WITHOUT ANY WARRANTY; without even the implied
1.14 +** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1.15 +*/
1.16 +
1.17 +/* Modified to use SETJMP_DJ_H rather than SETJMP_H to avoid
1.18 + conflicting with setjmp.h. Ian Taylor, Cygnus support, April,
1.19 + 1993. */
1.20 +
1.21 +#ifndef _SETJMP_DJ_H_
1.22 +#define _SETJMP_DJ_H_
1.23 +
1.24 +#ifdef __cplusplus
1.25 +extern "C" {
1.26 +#endif
1.27 +
1.28 +typedef struct {
1.29 + unsigned long eax;
1.30 + unsigned long ebx;
1.31 + unsigned long ecx;
1.32 + unsigned long edx;
1.33 + unsigned long esi;
1.34 + unsigned long edi;
1.35 + unsigned long ebp;
1.36 + unsigned long esp;
1.37 + unsigned long eip;
1.38 +} jmp_buf[1];
1.39 +
1.40 +extern int setjmp(jmp_buf);
1.41 +extern void longjmp(jmp_buf, int);
1.42 +
1.43 +#ifdef __cplusplus
1.44 +}
1.45 +#endif
1.46 +
1.47 +#endif
.