diff options
author | John Birrell <jb@FreeBSD.org> | 1998-01-20 09:09:24 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 1998-01-20 09:09:24 +0000 |
commit | 013239afdf167d49f362908f081dfb48d9d489f6 (patch) | |
tree | e9338416a65b533a6c27ebb1cc0610fccacd002e /include/setjmp.h | |
parent | ffe0efc2a9cd947854544d2b5a55c5535b70c2e0 (diff) | |
download | src-test2-013239afdf167d49f362908f081dfb48d9d489f6.tar.gz src-test2-013239afdf167d49f362908f081dfb48d9d489f6.zip |
Suggested by: bde
Move sigjmp_buf and jmp_buf structure definitions to machine/setjmp.h
so that i386 can continue to use int as the basic register type and
alpha can use long. Bruce was concerned about possible differing
alignment. I've left the definition of _JBLEN in machine/setjmp.h
even though Bruce's example used the number directly. I don't know if
any other code relies on _JBLEN, so I left it to avoid potential
breakage.
Notes
Notes:
svn path=/head/; revision=32641
Diffstat (limited to 'include/setjmp.h')
-rw-r--r-- | include/setjmp.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/setjmp.h b/include/setjmp.h index 6a428c1f243c..50934479f61e 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -44,17 +44,6 @@ /* The size of the jmp_buf is machine dependent: */ #include <machine/setjmp.h> -/* - * jmp_buf and sigjmp_buf are encapsulated in different structs to force - * compile-time diagnostics for mismatches. The structs are the same - * internally to avoid some run-time errors for mismatches. - */ -#ifndef _ANSI_SOURCE -typedef struct { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; -#endif /* not ANSI */ - -typedef struct { long _jb[_JBLEN + 1]; } jmp_buf[1]; - #include <sys/cdefs.h> __BEGIN_DECLS |