home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / internal / 1238 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.6 KB

  1. Xref: sparky vmsnet.internals:1238 vmsnet.misc:769
  2. Newsgroups: vmsnet.internals,vmsnet.misc
  3. Path: sparky!uunet!sun-barr!cs.utexas.edu!usc!wupost!tulane!cpu.com!cpu.com!GWLESTER
  4. From: gwlester@cpu.com (Gerald W. Lester)
  5. Subject: Re: Exit handlers in VAX-C
  6. Nntp-Posting-Host: merlin.cpu.com
  7. References: <la4fgtINNhs6@news.bbn.com>
  8. Sender: usenet@cpu.com (Usenet administrator)
  9. Organization: Computerized Processes Unlimited, Metairie, LA, (504)-889-2784
  10. Date: Mon, 31 Aug 1992 19:04:42 GMT
  11. Message-ID: <1992Aug31.190442.2507@cpu.com>
  12. Reply-To: gwlester@cpu.com
  13. Distribution: na
  14. Lines: 20
  15.  
  16. In article <la4fgtINNhs6@news.bbn.com>, mjensen@BBN.COM (Martin Jensen) writes:
  17. >    Thank you O Gods of VMS for a prompt and satisfying response to my
  18. >    earlier query!!  Now for the next question :-)
  19. >
  20. >    I'm trying to write an exit handler for a VMS program written in
  21. >    VAX-C.  The various VMS manuals have left me a little confused as to
  22. >    the calling conventions for exit handlers.
  23. >
  24. >    The Programming Resources Guide indicates that the exit handler
  25. >    should be written as a subroutine - implying (in my mind anyway) that
  26. >    the handler is called with a JSB and should return with a RSB.  Other
  27. >    documents seem to indicate that the handler is called as a normal
  28. >    procedure - implying (again, in my mind) that the handler is called
  29. >    with a CALL(S,G) and should return with a RET instruction.
  30. >
  31.  
  32.     It is invoked with CALL(S,G).  It should (must?) not return a value. 
  33. Some writters equate subroutine with procedure vs function.  While I have never
  34. written an exit handler in C, I have several in FORTRAN and Pascal.
  35.  
  36.