Portable uses of jmpbuf's
wsmith at m.cs.uiuc.edu
wsmith at m.cs.uiuc.edu
Tue Oct 11 13:39:00 AEST 1988
How do you portably pass a jmpbuf as a parameter to a C function?
Some machines define a jmpbuf to be struct { stuff } , while
others define a jmpbuf to be an array. In one case, an & is required,
while in the other case it is not.
My best solution was to define my own structure with one field of a
jmpbuf and then always take the address.
Is there a better way?
Bill Smith
uiucdcs!wsmith
wsmith at cs.uiuc.edu
More information about the Comp.lang.c
mailing list