home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 867 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.5 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!xanadu!ravi
  2. From: ravi@xanadu.com (Ravi Pandya)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: setjmp/longjmp
  5. Message-ID: <1992Sep8.202606.13762@xanadu.com>
  6. Date: 8 Sep 92 20:26:06 GMT
  7. Organization: Xanadu Operating Company
  8. Lines: 30
  9.  
  10. The July NT x86 toolset does not include setjmp/longjmp - the header
  11. file is ifdef'ed out, and it is not in the library. It is a fairly
  12. straightforward piece of assembly code to write, but before I do it,
  13. I'd like to know if there are any subtle reasons why the obvious
  14. approach won't work. Does NT do any odd messing around with stacks,
  15. privilege levels, etc that would make it hard? I have a suspicion that
  16. something like this is the reason it is not in the library.
  17.  
  18. Unfortunately, our port from UNIX to NT cannot proceed without it, or
  19. some facsimile, since it is used in our own exception handling
  20. package, which is used everywhere. We could move it over to the MS
  21. exception handler, except that it doesn't seem to be available nor
  22. documented yet... Any suggestions?
  23.  
  24. Furthermore, the compiler insists on treating a function in which some
  25. control paths do not return as an error. Since a lot of our functions
  26. might terminate by raising an exception and doing a longjmp, there are
  27. hundreds of places in our code that provoke this error message. Is
  28. there any way to turn it off, or at least downgrade it into a warning?
  29.  
  30. Thanks!
  31.     --ravi
  32.  
  33.     Ravi Pandya
  34.     Xanadu Operating Company
  35.     1891 Landings Drive
  36.     Mountain View CA 94043
  37.     415 903 1316
  38.     415 903 1399 fax
  39.     ravi@xanadu.com
  40.