From 7357ff3f14671e61bdd63e7ea441f877d328273b Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sun, 11 Jan 1998 03:46:26 +0000 Subject: Move _JBLEN definition to like on NetBSD. Remove definitions for architectures that we don't have libc MD source for. Change 'int' to 'long' in sigjmp_buf and jmp_buf structures so that they are suitable for the register size on both i386 and alpha. Although FreeBSD defines these structures differently to NetBSD, the element size is now the same. If Bruce doesn't like this [8-)], we'll need to add a typedef to each and use that in . --- include/setjmp.h | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'include/setjmp.h') diff --git a/include/setjmp.h b/include/setjmp.h index 5dcc8ee9564d..6a428c1f243c 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -41,29 +41,8 @@ #ifndef _SETJMP_H_ #define _SETJMP_H_ -#if defined(__hp300__) || defined(__luna68k__) -#define _JBLEN 17 -#endif - -#if defined(__i386__) -#define _JBLEN 8 -#endif - -#if defined(__mips__) -#define _JBLEN 83 -#endif - -#if defined(__sparc__) -#define _JBLEN 10 -#endif - -#if defined(__tahoe__) -#define _JBLEN 10 -#endif - -#if defined(__vax__) -#define _JBLEN 10 -#endif +/* The size of the jmp_buf is machine dependent: */ +#include /* * jmp_buf and sigjmp_buf are encapsulated in different structs to force @@ -71,10 +50,10 @@ * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE -typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; +typedef struct { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ -typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; +typedef struct { long _jb[_JBLEN + 1]; } jmp_buf[1]; #include -- cgit v1.3