GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cstdio>
#include <deque>
#include <string>
#include "quit.h"
#include "input.h"
#include "oct-map.h"
#include "symtab.h"
Go to the source code of this file.
Classes | |
struct | octave_call_stack::call_stack_elt |
class | octave_call_stack |
Macros | |
#define | OCTAVE_IGNORE_EXCEPTION(E) |
#define | OCTAVE_SAFE_CALL(F, ARGS) |
Typedefs | |
typedef void(* | octave_exit_func )(int) |
Functions | |
OCTINTERP_API void | clean_up_and_exit (int status, bool safe_to_return=false) |
OCTINTERP_API int | main_loop (void) |
OCTINTERP_API void | octave_add_atexit_function (const std::string &fname) |
OCTINTERP_API bool | octave_remove_atexit_function (const std::string &fname) |
OCTINTERP_API void | recover_from_exception (void) |
#define OCTAVE_IGNORE_EXCEPTION | ( | E | ) |
#define OCTAVE_SAFE_CALL | ( | F, | |
ARGS | |||
) |
Definition at line 446 of file toplev.h.
Referenced by close_figure(), and do_octave_atexit().
OCTINTERP_API void clean_up_and_exit | ( | int | status, |
bool | safe_to_return = false |
||
) |
Definition at line 728 of file toplev.cc.
References do_octave_atexit(), octave_link::exit(), and octave_exit.
Referenced by execute_eval_option_code(), octave_execute_interpreter(), and safe_source_file().
OCTINTERP_API int main_loop | ( | void | ) |
Definition at line 529 of file toplev.cc.
References tree_statement_list::accept(), symbol_table::at_top_level(), tree_break_command::breaking, can_interrupt, current_evaluator, lexical_feedback::end_of_input, error_state, exit_status, forced_interactive, command_editor::increment_current_command_number(), interactive, octave_base_parser::lexer, octave_bad_alloc_hook, octave_catch_interrupts(), octave_completion_matches_called, octave_initialized, octave_interrupt_hook, octave_save_signal_mask(), octave_signal_handler(), octave_signal_hook, octave_stdout, parser, quitting_gracefully, recover_from_exception(), octave_base_parser::reset(), tree_evaluator::reset_debug_state(), reset_error_handler(), tree_return_command::returning, octave_parser::run(), and octave_base_parser::stmt_list.
Referenced by octave_execute_interpreter().
OCTINTERP_API void octave_add_atexit_function | ( | const std::string & | fname | ) |
OCTINTERP_API bool octave_remove_atexit_function | ( | const std::string & | fname | ) |
OCTINTERP_API void recover_from_exception | ( | void | ) |
Definition at line 517 of file toplev.cc.
References can_interrupt, octave_catch_interrupts(), octave_exception_state, octave_interrupt_immediately, octave_interrupt_state, octave_no_exception, octave_restore_signal_mask(), and octave_signal_caught.
Referenced by execute_eval_option_code(), main_loop(), and safe_source_file().
OCTINTERP_API int exit_status |
Definition at line 96 of file toplev.cc.
Referenced by execute_eval_option_code(), main_loop(), and safe_source_file().
OCTINTERP_API octave_exit_func octave_exit |
Definition at line 88 of file toplev.cc.
Referenced by clean_up_and_exit().
OCTINTERP_API bool octave_initialized |
Definition at line 103 of file toplev.cc.
Referenced by execute_command_line_file(), execute_eval_option_code(), main_loop(), and user_abort().
OCTINTERP_API bool octave_interpreter_ready |
Definition at line 100 of file toplev.cc.
Referenced by execute_pkg_add_or_del(), and octave_initialize_interpreter().
OCTINTERP_API bool quit_allowed |
Definition at line 91 of file toplev.cc.
Referenced by Fquit(), octave_initialize_interpreter(), and octave_oncleanup::~octave_oncleanup().
OCTINTERP_API bool quitting_gracefully |
Definition at line 94 of file toplev.cc.
Referenced by do_octave_atexit(), execute_eval_option_code(), Fquit(), main_loop(), octave_execute_interpreter(), octave_base_lexer::reset(), and safe_source_file().