Mercurial > octave
diff libinterp/corefcn/interpreter.cc @ 27480:63b417917f5e
remove some obsolete signal handling functions
* quit.h, quit.cc (octave_exception): Delete enum declaration.
(octave_exception_state, octave_exit_exception_status,
octave_exit_exception_safe_to_return): Delete variables and all uses.
(octave_throw_interrupt_exception, octave_throw_execution_exception,
octave_throw_bad_alloc, octave_throw_exit_exception,
octave_rethrow_exception): Delete functions and all uses.
* cquit.c: Delete
* liboctave/util/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 06 Oct 2019 16:30:35 -0400 |
parents | 3fec8e9fa2aa |
children | 7a31b25e3252 |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc Mon Oct 07 10:55:51 2019 -0400 +++ b/libinterp/corefcn/interpreter.cc Sun Oct 06 16:30:35 2019 -0400 @@ -335,7 +335,7 @@ verror_with_cfn (fmt, args); va_end (args); - octave_throw_execution_exception (); + throw execution_exception (); } OCTAVE_NORETURN static void @@ -346,7 +346,7 @@ verror_with_id_cfn (id, fmt, args); va_end (args); - octave_throw_execution_exception (); + throw execution_exception (); } static void initialize_error_handlers (void) @@ -886,7 +886,6 @@ octave_signal_hook = respond_to_pending_signals; octave_interrupt_hook = nullptr; - octave_bad_alloc_hook = nullptr; catch_interrupts (); @@ -930,7 +929,6 @@ octave_signal_hook = respond_to_pending_signals; octave_interrupt_hook = nullptr; - octave_bad_alloc_hook = nullptr; catch_interrupts (); @@ -984,7 +982,6 @@ octave_signal_hook = respond_to_pending_signals; octave_interrupt_hook = nullptr; - octave_bad_alloc_hook = nullptr; catch_interrupts (); @@ -1678,7 +1675,6 @@ can_interrupt = true; octave_interrupt_state = 0; octave_signal_caught = 0; - octave_exception_state = octave_no_exception; octave_restore_signal_mask (); catch_interrupts (); }