Re: #pragma cancel_handler




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? 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

.



Relevant Pages

  • 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 ... There are no exceptions in C, ... That forum might be comp.lang.c++, ...
    (comp.lang.c)
  • 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 ... finally code block in a C function. ...
    (comp.lang.c)
  • Re: Eiffel and portability, which choice ?
    ... The generated code is ANSI C, ... trailing ',' in enum lists.) ... Another feature of SE is somewhat sophisticated support for ... into formal type TUPLE. ...
    (comp.lang.eiffel)
  • Re: debugging
    ... ANSI X3.23-1974 says that a condition-name can be associated with any data ... or an item declared USAGE INDEX. ... don't see any indication that this was a new feature of '74 COBOL, ...
    (comp.lang.cobol)
  • Re: #pragma cancel_handler
    ... provided in IBM's ILE C compiler? ... we don't know about or discuss C++ features. ... cancel_handler in ILE C, because that feature is not part of the C ... How does ANSI C handle exceptions? ...
    (comp.lang.c)