Subject: include/setjmp.h including machine/setjmp_jblen.h ...
To: None <tech-ports@netbsd.org>
From: Andrew Cagney <cagney@highland.com.au>
List: tech-ports
Date: 11/24/1994 12:04:33
Hello,

The setjmp.h found in my NetBSD-1.0-BETA release contains a run of ...

	#if ... is an architecture ...
	#define _JBLEN nnn
	#elif ... a different architecure ....
	.
	.
	.

I'd like to see this code removed, being replaced by a #include of a
small header file that defines _JBLEN.  For instance:

	#define _JBLEN 40 /* this is total fiction */

A change like this may have wider applicability ...

				Andrew

PS: Must remember the correct arguments to rcs ....
PPS: Wonder if it should be <..> or ".."

*** 1.1	1994/11/24 00:44:57
--- include/setjmp.h	1994/11/24 00:51:38
***************
*** 36,74 ****
   * SUCH DAMAGE.
   *
   *	from: @(#)setjmp.h	8.2 (Berkeley) 1/21/94
!  *	$Id: setjmp.h,v 1.1 1994/11/24 00:44:57 cagney Exp $
   */
  
  #ifndef _SETJMP_H_
  #define _SETJMP_H_
  
! #if defined(mc68000) || defined(__mc68000__)
! #define _JBLEN	17
! #endif
! 
! #if defined(i386) || defined(__i386__)
! #define _JBLEN	10
! #endif
! 
! #if defined(mips) || defined(__mips__)
! #define _JBLEN	83
! #endif
! 
! #if defined(sparc) || defined(__sparc__)
! #define _JBLEN	10
! #endif
! 
! #if defined(tahoe) || defined(__tahoe__)
! #define _JBLEN	10
! #endif
! 
! #if defined(vax) || defined(__vax__)
! #define _JBLEN	10
! #endif
  
- #if defined(pc532) || defined(__pc532__)
- #define _JBLEN	10
- #endif
  
  #ifndef _ANSI_SOURCE
  /*
--- 36,53 ----
   * SUCH DAMAGE.
   *
   *	from: @(#)setjmp.h	8.2 (Berkeley) 1/21/94
!  *	$Id: setjmp.h,v 1.2 1994/11/24 00:51:07 cagney Exp $
   */
  
  #ifndef _SETJMP_H_
  #define _SETJMP_H_
  
! /*
!  * setjmp_jblen.h defines the macro _JBLEN which specifies the dimension
!  * of the type jmp_buf
!  */
! #include <machine/setjmp_jblen.h>
  
  
  #ifndef _ANSI_SOURCE
  /*