From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 7 Jan 2013 06:15:08 -0500 To: 9fans@9fans.net Message-ID: In-Reply-To: <1637616.FvtJCIHcLZ@krypton> References: <1752877.EVzC7FFEmr@krypton> <1637616.FvtJCIHcLZ@krypton> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] a jmp_buf in APE question Topicbox-Message-UUID: 026041c6-ead8-11e9-9d60-3106f5b1d025 > 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] yes, i think it would be unwise. i think you mean sp = ((uintptr*)jb)[0] pc = ((uintptr*)jb)[1] > 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