Deleted Added
full compact
setjmp.h (66739) setjmp.h (104493)
1/* $FreeBSD: head/sys/i386/include/setjmp.h 66739 2000-10-06 11:53:32Z bde $ */
2/*
1/*-
3 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
2 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/i386/include/setjmp.h 104493 2002-10-04 22:10:06Z mike $
33 */
34
33 */
34
35#ifndef _MACHINE_SETJMP_H_
36#define _MACHINE_SETJMP_H_
37
35#define _JBLEN 11 /* Size of the jmp_buf on x86. */
36
37/*
38 * jmp_buf and sigjmp_buf are encapsulated in different structs to force
39 * compile-time diagnostics for mismatches. The structs are the same
40 * internally to avoid some run-time errors for mismatches.
41 */
42#ifndef _ANSI_SOURCE
38#define _JBLEN 11 /* Size of the jmp_buf on x86. */
39
40/*
41 * jmp_buf and sigjmp_buf are encapsulated in different structs to force
42 * compile-time diagnostics for mismatches. The structs are the same
43 * internally to avoid some run-time errors for mismatches.
44 */
45#ifndef _ANSI_SOURCE
43typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
44#endif /* not ANSI */
46typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
47#endif
45
48
46typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1];
49typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1];
50
51#endif /* !_MACHINE_SETJMP_H_ */