home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!ebergman
- From: ebergman@nyx.cs.du.edu (Eric Bergman-Terrell)
- Subject: Re: setjmp/longjmp
- Message-ID: <1992Sep8.214725.27612@mnemosyne.cs.du.edu>
- X-Disclaimer: Nyx is a public access Unix system run by the University
- of Denver for the Denver community. The University has neither
- control over nor responsibility for the opinions of users.
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
- References: <1992Sep8.202606.13762@xanadu.com>
- Date: Tue, 8 Sep 92 21:47:25 GMT
- Lines: 38
-
- In article <1992Sep8.202606.13762@xanadu.com> ravi@xanadu.com (Ravi Pandya) writes:
- >The July NT x86 toolset does not include setjmp/longjmp - the header
- >file is ifdef'ed out, and it is not in the library. It is a fairly
- >straightforward piece of assembly code to write, but before I do it,
- >I'd like to know if there are any subtle reasons why the obvious
- >approach won't work. Does NT do any odd messing around with stacks,
- >privilege levels, etc that would make it hard? I have a suspicion that
- >something like this is the reason it is not in the library.
- >
- >Unfortunately, our port from UNIX to NT cannot proceed without it, or
- >some facsimile, since it is used in our own exception handling
- >package, which is used everywhere. We could move it over to the MS
- >exception handler, except that it doesn't seem to be available nor
- >documented yet... Any suggestions?
- >
- >Furthermore, the compiler insists on treating a function in which some
- >control paths do not return as an error. Since a lot of our functions
- >might terminate by raising an exception and doing a longjmp, there are
- >hundreds of places in our code that provoke this error message. Is
- >there any way to turn it off, or at least downgrade it into a warning?
- >
- >Thanks!
- > --ravi
- >
- > Ravi Pandya
- > Xanadu Operating Company
- > 1891 Landings Drive
- > Mountain View CA 94043
- > 415 903 1316
- > 415 903 1399 fax
- > ravi@xanadu.com
-
-
- Ravi:
-
- You might want to read about Catch() and Throw() in the Windows API docs.
-
- Terrell
-