Subject: Re: include/setjmp.h including machine/setjmp_jblen.h ...
To: Andrew Cagney <>
From: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
List: tech-ports
Date: 12/04/1994 02:32:14
> 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.

you propose <machine/setjmp_jblen.h>.  actually, i think it should
simply be <machine/setjmp.h>.

also, i believe that jmp_buf (and sigjmp_buf) should be arrays of
'long's rather than arrays of ints.

this doesn't make much difference... unless you're on a 64-bit RISC
machine that traps writes of 'long's to non-long-aligned addresses,
and which only aligns arrays of 'int's to int (i.e. 4-byte) alignment.

thoughts?  if i hear no objection, i'm going to implement both of
these suggestions tomorrow.