ovehk at ping.uio.no
Thu Jan 9 13:58:42 CST 2003
On Thu, 9 Jan 2003, Kari Hurtta wrote:
> Sendmail 8.12 uses also exception mecanism.
> On it's implementation 'try' uses setjmp()
> ( Look macros include/sm/exc.h -- you can not of course copy these
> but that should tell enough that it is doable just plain C )
Sure a try/except mechanism is doable in plain C. Wine already has such a
plain-C-mechanism in include/wine/exception.h. The problem is to make it
compatible with both Win32 SEH (which is different from setjmp/longjmp)
*and* MSVC-style __except(expr) syntax; the macros in
include/wine/exception.h, while complicated enough in their attempt to fit
setjmp/longjmp into SEH, only manage to implement one of them.
More information about the wine-devel