GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <stdio.h>
#include <signal.h>
#include <setjmp.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 = 2 } |
Functions | |
CRUFT_API void | octave_handle_signal (void) |
CRUFT_API void | octave_jump_to_enclosing_context (void) GCC_ATTR_NORETURN |
CRUFT_API void | octave_restore_current_context (void *) |
CRUFT_API void | octave_restore_signal_mask (void) |
CRUFT_API void | octave_rethrow_exception (void) |
CRUFT_API void | octave_save_current_context (void *) |
CRUFT_API void | octave_save_signal_mask (void) |
CRUFT_API void | octave_throw_bad_alloc (void) GCC_ATTR_NORETURN |
CRUFT_API void | octave_throw_execution_exception (void) GCC_ATTR_NORETURN |
CRUFT_API void | octave_throw_interrupt_exception (void) GCC_ATTR_NORETURN |
Variables | |
CRUFT_API octave_jmp_buf | current_context |
CRUFT_API sig_atomic_t | octave_exception_state |
CRUFT_API sig_atomic_t | octave_interrupt_immediately |
CRUFT_API sig_atomic_t | octave_interrupt_state |
CRUFT_API volatile sig_atomic_t | octave_signal_caught |
#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
Definition at line 158 of file quit.h.
Referenced by SparseComplexQR::SparseComplexQR_rep::C(), SparseQR::SparseQR_rep::C(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), sparse_base_chol< chol_type, chol_elt, p_type >::sparse_base_chol_rep::init(), curl_transfer::perform(), SparseComplexQR::SparseComplexQR_rep::Q(), SparseQR::SparseQR_rep::Q(), qrsolve(), SparseComplexQR::SparseComplexQR_rep::R(), SparseQR::SparseQR_rep::R(), SparseQR::SparseQR_rep::SparseQR_rep(), SparseComplexQR::SparseComplexQR_rep::V(), and SparseQR::SparseQR_rep::V().
#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 180 of file quit.h.
Referenced by SparseComplexQR::SparseComplexQR_rep::C(), SparseQR::SparseQR_rep::C(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), sparse_base_chol< chol_type, chol_elt, p_type >::sparse_base_chol_rep::init(), curl_transfer::perform(), SparseComplexQR::SparseComplexQR_rep::Q(), SparseQR::SparseQR_rep::Q(), qrsolve(), SparseComplexQR::SparseComplexQR_rep::R(), SparseQR::SparseQR_rep::R(), SparseQR::SparseQR_rep::SparseQR_rep(), SparseComplexQR::SparseComplexQR_rep::V(), and SparseQR::SparseQR_rep::V().
#define OCTAVE_QUIT |
Definition at line 130 of file quit.h.
Referenced by calc_degrees(), encode_bool_image(), encode_indexed_images(), encode_uint_image(), F__dsearchn__(), octave_base_lexer::fatal_error(), filter(), find_nonzero_elem_idx(), find_starting_node(), Fquadcc(), Fqz(), Ftsearch(), Fwaitfor(), G__magick_finfo__(), Gsymrcm(), regexp::match(), read_images(), read_indexed_images(), regexp::replace(), and transpose().
#define octave_set_current_context setjmp (current_context) |
typedef jmp_buf octave_jmp_buf |
enum octave_exception |
CRUFT_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().
CRUFT_API void octave_jump_to_enclosing_context | ( | void | ) |
Definition at line 47 of file cquit.c.
References current_context.
Referenced by F77_FUNC(), and user_abort().
CRUFT_API void octave_restore_current_context | ( | void * | ) |
Definition at line 41 of file cquit.c.
References current_context.
CRUFT_API void octave_restore_signal_mask | ( | void | ) |
Definition at line 73 of file cquit.c.
References octave_signal_mask.
Referenced by recover_from_exception().
CRUFT_API void octave_rethrow_exception | ( | void | ) |
Definition at line 82 of file quit.cc.
References octave_alloc_exception, octave_exception_state, octave_exec_exception, octave_interrupt_state, octave_throw_bad_alloc(), octave_throw_execution_exception(), and octave_throw_interrupt_exception().
CRUFT_API void octave_save_current_context | ( | void * | ) |
Definition at line 35 of file cquit.c.
References current_context.
CRUFT_API void octave_save_signal_mask | ( | void | ) |
Definition at line 67 of file cquit.c.
References octave_signal_mask.
Referenced by execute_command_line_file(), execute_eval_option_code(), and main_loop().
CRUFT_API void octave_throw_bad_alloc | ( | void | ) |
Definition at line 71 of file quit.cc.
References octave_alloc_exception, octave_bad_alloc_hook, and octave_exception_state.
Referenced by octave_rethrow_exception().
CRUFT_API void octave_throw_execution_exception | ( | void | ) |
Definition at line 61 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().
CRUFT_API void octave_throw_interrupt_exception | ( | void | ) |
Definition at line 52 of file quit.cc.
References octave_interrupt_hook.
Referenced by Fdbquit(), Fquit(), octave_handle_signal(), and octave_rethrow_exception().
CRUFT_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().
CRUFT_API sig_atomic_t octave_exception_state |
Definition at line 82 of file cquit.c.
Referenced by gripe_library_execution_error(), octave_rethrow_exception(), octave_throw_bad_alloc(), octave_throw_execution_exception(), and recover_from_exception().
CRUFT_API sig_atomic_t octave_interrupt_immediately |
Definition at line 78 of file cquit.c.
Referenced by recover_from_exception(), and user_abort().
CRUFT_API sig_atomic_t octave_interrupt_state |
Definition at line 80 of file cquit.c.
Referenced by tree_evaluator::do_unwind_protect_cleanup_code(), Fquit(), jit_typeinfo::jit_typeinfo(), octave_handle_signal(), octave_rethrow_exception(), recover_from_exception(), user_abort(), and octave_oncleanup::~octave_oncleanup().
CRUFT_API volatile sig_atomic_t octave_signal_caught |
Definition at line 84 of file cquit.c.
Referenced by recover_from_exception(), and user_abort().