måndagen den 7 januari 2013 05.31.44 skrev  erik quanstrom:
> the structure within jmp_buf is entirely determined by the code in setjmp.s
> 
> i don't think it would be wise to rely on the structure of jmp_buf.

Do you mean by this that it would be unwise to do something like

"variable that needs to be = sp" = (jmp_buf) jb[0]
"variable that needs to be = pc" = (jmp_buf) jb[1]


this is how other similar ports of this package (GNU portable threads) have 
been made, for example for win32

"variant 4", "variant 5" and "variant X" in the file pth_mctx.c are examples 
of this strategy.*


*
for reference:
http://www.opensource.apple.com/source/ChatServer/ChatServer-37.1/jabberd-
src/jabberd/pth-1.4.0/pth_mctx.c?txt




Reply via email to