Re: #pragma cancel_handler



Steve Richter wrote:
Lew Pitcher wrote:

Steve Richter wrote:

Is there an ANSI C or GNU C equivalent to the #pragma cancel_handler
provided in IBM's ILE C compiler?

http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/cpprog436.htm

FWIW, according to the above link, a cancel_handler is a C++ feature.

Since this is comp.lang.C, we don't know about or discuss C++ features.
There certainly won't be an ANSI C equivalent to the #pragma
cancel_handler in ILE C, because that feature is not part of the C
language at all.


yeah, it does say that but I have used it in ILE C and it works as
documented. I dont follow. How does ANSI C handle exceptions?

There are no such things, so you don't handle them at all.

I am reading about signal handlers in the Linux books I have but none of
them seem to deal with how to implement a try .... finally block.

-Steve

I know what signal handlers are, but I cannot recall anything about a
'try .... finally block'.

.



Relevant Pages

  • Re: SQL and COBOL
    ... up ILE under my own steam, but the question of support arises. ... plenty of little utility programs for date conversion etc., ... features aren't enough to get us to make the leap, ...
    (comp.sys.ibm.as400.misc)
  • Re: The question rather is, will you find dmesg on "all systems"?! ...
    ... > searching for info on the ANSI standard. ... (OTOH, perhaps I did, and ... terminfo lists a lot of features. ... but each has a lot of features that are not reflected in the other. ...
    (comp.unix.shell)
  • Re: question about declaration - pointers
    ... ANSI C by David Wolverton, which didn't compile. ... (by removing features), it didn't link. ... more features), it didn't run. ...
    (comp.lang.c)
  • Re: To C or not to C ... now what the hell to I do?
    ... many of the new goodies depend on OS features, RMS features, etc. ... I was hoping that this meant the 2038 bug had ... Based on past performance, if the ANSI C committee meets again, we may be forced to standardize on a different language! ...
    (comp.os.vms)
  • Re: #pragma cancel_handler
    ... FWIW, according to the above link, a cancel_handler is a C++ feature. ... cancel_handler in ILE C, because that feature is not part of the C ... How does ANSI C handle exceptions? ...
    (comp.lang.c)