måndagen den 7 januari 2013 06.15.08 skrev erik quanstrom: > > yes, i think it would be unwise. i think you mean > > sp = ((uintptr*)jb)[0] > pc = ((uintptr*)jb)[1] >
yeah sorry I did not mean it to look like C-code and the paranthesis was meant to indicate that jb got #defined to jmp_buf. > > this is how other similar ports of this package (GNU portable threads) > > have > > been made, for example for win32 > > it's just my opinion. i would see such code as peeking through > an deliberately-opaque interface. and to me that's almost always > a bad idea. even if it works, and even if other people do it. > > others might have other thoughts. > > - erik I thank you for your feedback and help I did the build despite your warnings, and the result can be found either at: http://code.google.com/p/ports2plan9/downloads/list or: /n/sources/contrib/staal1978/pkg Tests and pre-compiled test binaries can also be found at: /n/sources/contrib/staal1978/pkg/pth_test There are some scary stuff in there, like the test_sig result, but others seem to work...