home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!xanadu!ravi
- From: ravi@xanadu.com (Ravi Pandya)
- Newsgroups: comp.os.ms-windows.programmer.win32
- Subject: setjmp/longjmp
- Message-ID: <1992Sep8.202606.13762@xanadu.com>
- Date: 8 Sep 92 20:26:06 GMT
- Organization: Xanadu Operating Company
- Lines: 30
-
- 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
-