Mercurial > hg > octave-terminal
changeset 4551:2c619e5138fd
[project @ 2003-10-27 17:04:38 by jwe]
author | jwe |
---|---|
date | Mon, 27 Oct 2003 17:04:38 +0000 |
parents | 69a9b22a72a2 |
children | 6f3382e08a52 |
files | libcruft/ChangeLog libcruft/misc/quit.h |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libcruft/ChangeLog +++ b/libcruft/ChangeLog @@ -1,3 +1,8 @@ +2003-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> + + * misc/quit.h (octave_interrupt_hook, octave_bad_alloc_hook): + Move function pointer declarations inside __cplusplus section. + 2003-07-29 John W. Eaton <jwe@bevo.che.wisc.edu> * Makefile.in (install-lib): Use $(INSTALL), not
--- a/libcruft/misc/quit.h +++ b/libcruft/misc/quit.h @@ -87,9 +87,6 @@ } \ while (0) -extern void (*octave_interrupt_hook) (void); -extern void (*octave_bad_alloc_hook) (void); - /* Normally, you just want to use BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE; @@ -137,6 +134,9 @@ #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; \ \