GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "octave-config.h"
#include <setjmp.h>
#include <signal.h>
Go to the source code of this file.
Macros | |
#define | BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
#define | BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_1 |
#define | BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_2 |
#define | END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
#define | OCTAVE_QUIT |
#define | octave_set_current_context setjmp (current_context) |
Typedefs | |
typedef jmp_buf | octave_jmp_buf |
Enumerations | |
enum | octave_exception { octave_no_exception = 0, octave_exec_exception = 1, octave_alloc_exception = 3, octave_quit_exception = 4 } |
Functions | |
OCTAVE_API void | octave_handle_signal (void) |
OCTAVE_NORETURN OCTAVE_API void | octave_jump_to_enclosing_context (void) |
OCTAVE_API void | octave_restore_current_context (void *) |
OCTAVE_API void | octave_rethrow_exception (void) |
OCTAVE_API void | octave_save_current_context (void *) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_bad_alloc (void) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_execution_exception (void) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_interrupt_exception (void) |
Variables | |
OCTAVE_API octave_jmp_buf | current_context |
OCTAVE_API sig_atomic_t | octave_exception_state |
OCTAVE_API sig_atomic_t | octave_exit_exception_safe_to_return |
OCTAVE_API sig_atomic_t | octave_exit_exception_status |
OCTAVE_API sig_atomic_t | octave_interrupt_immediately |
OCTAVE_API sig_atomic_t | octave_interrupt_state |
OCTAVE_API volatile sig_atomic_t | octave_signal_caught |
#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
Definition at line 240 of file quit.h.
Referenced by octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::C(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::init(), octave::curl_transfer::perform(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_1 |
#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_2 |
#define END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
Definition at line 262 of file quit.h.
Referenced by octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::C(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::init(), octave::curl_transfer::perform(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
#define OCTAVE_QUIT |
Definition at line 212 of file quit.h.
Referenced by calc_degrees(), F__dsearchn__(), filter(), find_nonzero_elem_idx(), find_starting_node(), Gsymrcm(), octave::regexp::match(), read_images(), read_indexed_images(), octave::regexp::replace(), transpose(), and while().
#define octave_set_current_context setjmp (current_context) |
typedef jmp_buf octave_jmp_buf |
enum octave_exception |
OCTAVE_API void octave_handle_signal | ( | void | ) |
Definition at line 39 of file quit.cc.
References octave_interrupt_state, octave_signal_hook, and octave_throw_interrupt_exception().
OCTAVE_NORETURN OCTAVE_API void octave_jump_to_enclosing_context | ( | void | ) |
Definition at line 47 of file cquit.c.
References current_context.
Referenced by octave::posix_interrupt_manager::do_jump_to_enclosing_context(), and F77_FUNC().
OCTAVE_API void octave_restore_current_context | ( | void * | ) |
Definition at line 41 of file cquit.c.
References current_context.
OCTAVE_API void octave_rethrow_exception | ( | void | ) |
Definition at line 90 of file quit.cc.
References clean_up_and_exit(), octave_alloc_exception, octave_exception_state, octave_exec_exception, octave_exit_exception_safe_to_return, octave_exit_exception_status, octave_interrupt_state, octave_quit_exception, octave_throw_bad_alloc(), octave_throw_execution_exception(), and octave_throw_interrupt_exception().
OCTAVE_API void octave_save_current_context | ( | void * | ) |
Definition at line 35 of file cquit.c.
References current_context.
OCTAVE_NORETURN OCTAVE_API void octave_throw_bad_alloc | ( | void | ) |
Definition at line 79 of file quit.cc.
References octave_alloc_exception, octave_bad_alloc_hook, and octave_exception_state.
Referenced by octave_rethrow_exception().
OCTAVE_NORETURN OCTAVE_API void octave_throw_execution_exception | ( | void | ) |
Definition at line 69 of file quit.cc.
References octave_exception_state, and octave_exec_exception.
Referenced by lo_error_handler(), lo_error_with_id_handler(), and octave_rethrow_exception().
OCTAVE_NORETURN OCTAVE_API void octave_throw_interrupt_exception | ( | void | ) |
Definition at line 60 of file quit.cc.
References octave_interrupt_hook.
Referenced by octave_handle_signal(), and octave_rethrow_exception().
OCTAVE_API octave_jmp_buf current_context |
Definition at line 32 of file cquit.c.
Referenced by octave_jump_to_enclosing_context(), octave_restore_current_context(), and octave_save_current_context().
OCTAVE_API sig_atomic_t octave_exception_state |
Definition at line 60 of file cquit.c.
Referenced by clean_up_and_exit(), octave_rethrow_exception(), octave_throw_bad_alloc(), octave_throw_execution_exception(), and recover_from_exception().
OCTAVE_API sig_atomic_t octave_exit_exception_safe_to_return |
Definition at line 64 of file cquit.c.
Referenced by octave_rethrow_exception().
OCTAVE_API sig_atomic_t octave_exit_exception_status |
Definition at line 62 of file cquit.c.
Referenced by octave_rethrow_exception().
OCTAVE_API sig_atomic_t octave_interrupt_immediately |
Definition at line 56 of file cquit.c.
Referenced by recover_from_exception(), and octave::user_abort().
OCTAVE_API sig_atomic_t octave_interrupt_state |
Definition at line 58 of file cquit.c.
Referenced by octave::tree_evaluator::do_unwind_protect_cleanup_code(), jit_typeinfo::jit_typeinfo(), octave_handle_signal(), octave_rethrow_exception(), recover_from_exception(), octave::sigpipe_handler(), octave::user_abort(), and octave_oncleanup::~octave_oncleanup().
OCTAVE_API volatile sig_atomic_t octave_signal_caught |
Definition at line 66 of file cquit.c.
Referenced by recover_from_exception(), octave::sigchld_handler(), octave::sigpipe_handler(), and octave::user_abort().