setjmp(), register vars and the proposed standard

peterg at tekecs.UUCP peterg at tekecs.UUCP
Wed Oct 31 03:59:54 AEST 1984


This is how the library subsection of the proposed ANSI standard
reads for setjmp()/longjmp():

> All accessible objects have value as of the time longjmp was called,
> except for objects of storage class auto or register whose values
> have been changed between the setjmp and longjmp calls. These values
> are undefined.

Given that many processors don't automatically push any kind of register
mask on the stack (as VAXen do) this seems like a 'safe and sane' approach.


UUCP:	...!{ucbvax or decvax}!tektronix!tekecs!peterg
ARPA:	tekecs!peterg.tektronix @ udel-relay



More information about the Comp.lang.c mailing list