# HG changeset patch # User jwe # Date 1067374963 0 # Node ID 661246155bbc838062f1ecbbdf31c4edd0a48990 # Parent 802818bfac91e9f23e606bd523180f34399e3588 [project @ 2003-10-28 21:02:43 by jwe] diff -r 802818bfac91 -r 661246155bbc libcruft/misc/quit.h --- a/libcruft/misc/quit.h Tue Oct 28 19:13:43 2003 +0000 +++ b/libcruft/misc/quit.h Tue Oct 28 21:02:43 2003 +0000 @@ -134,9 +134,6 @@ #ifdef __cplusplus -extern void (*octave_interrupt_hook) (void); -extern void (*octave_bad_alloc_hook) (void); - #define BEGIN_INTERRUPT_WITH_EXCEPTIONS \ sig_atomic_t saved_octave_interrupt_immediately = octave_interrupt_immediately; \ \ @@ -163,6 +160,13 @@ #ifdef __cplusplus } + +// These should only be declared for C++ code, and should also be +// outside of any extern "C" block. + +extern void (*octave_interrupt_hook) (void); +extern void (*octave_bad_alloc_hook) (void); + #endif #endif