#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#include "cmd-edit.h"
#include "file-ops.h"
#include "quit.h"
#include "str-vec.h"
#include "bp-table.h"
#include "builtin-defun-decls.h"
#include "call-stack.h"
#include "defun.h"
#include "dirfns.h"
#include "error.h"
#include "errwarn.h"
#include "help.h"
#include "hook-fcn.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "lex.h"
#include "load-path.h"
#include "octave.h"
#include "octave-link.h"
#include "oct-map.h"
#include "oct-hist.h"
#include "ovl.h"
#include "ov-fcn-handle.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "pt-eval.h"
#include "pt-stmt.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Classes | |
class | octave::eval_string_reader |
class | octave::file_reader |
class | octave::terminal_reader |
Namespaces | |
octave | |
Functions | |
std::string | find_indexed_expression (const std::string &text) |
static std::string | generate_completion (const std::string &text, int state) |
static string_vector | generate_possible_completions (const std::string &text, std::string &prefix, std::string &hint, bool &deemed_struct) |
FILE * | get_input_from_stdin (void) |
static std::string | gnu_readline (const std::string &s, bool &eof) |
void | initialize_command_input (void) |
static std::string | interactive_input (const std::string &s, bool &eof) |
static bool | is_completing_dirfns (void) |
static std::string | quoting_filename (const std::string &text, int, char quote) |
void | remove_input_event_hook_functions (void) |
void | set_default_prompts (void) |
Variables | |
static hook_function_list | input_event_hook_functions |
static std::string | last_debugging_command = "\n" |
bool | octave_completion_matches_called = false |
static char | Vcompletion_append_char = ' ' |
bool | Vdebugging = false |
bool | Vdrawnow_requested = false |
static bool | Vgud_mode = false |
octave::sys::time | Vlast_prompt_time = 0.0 |
static std::string | VPS1 |
static std::string | VPS2 |
bool | Vtrack_line_num = true |
std::string find_indexed_expression | ( | const std::string & | text | ) |
Definition at line 537 of file input.cc.
References octave::command_editor::get_line_buffer(), and string.
Referenced by generate_struct_completions().
|
static |
Definition at line 425 of file input.cc.
References string_vector::append(), octave::command_editor::generate_filename_completions(), generate_possible_completions(), octave::command_editor::get_prev_char(), i, is_completing_dirfns(), looks_like_struct(), name, Array< T >::numel(), retval, octave::command_editor::set_completion_append_character(), state, string, text, and Vcompletion_append_char.
Referenced by initialize_command_input().
|
static |
Definition at line 378 of file input.cc.
References generate_struct_completions(), octave::command_editor::get_prev_char(), looks_like_struct(), octave::make_name_list(), and string_vector::sort().
Referenced by generate_completion().
FILE* get_input_from_stdin | ( | void | ) |
Definition at line 369 of file input.cc.
References octave::command_editor::get_input_stream(), and octave::command_editor::set_input_stream().
|
static |
Definition at line 134 of file input.cc.
References octave::command_editor::readline(), retval, s, and string.
Referenced by interactive_input(), and octave::command_editor::make_command_editor().
void initialize_command_input | ( | void | ) |
Definition at line 580 of file input.cc.
References generate_completion(), quoting_filename(), s, octave::command_editor::set_basic_quote_characters(), octave::command_editor::set_basic_word_break_characters(), octave::command_editor::set_completer_quote_characters(), octave::command_editor::set_completer_word_break_characters(), octave::command_editor::set_completion_function(), octave::command_editor::set_filename_quote_characters(), octave::command_editor::set_name(), and octave::command_editor::set_quoting_function().
|
inlinestatic |
Definition at line 149 of file input.cc.
References e, eval_error(), octave::flush_stdout(), gnu_readline(), octave::interpreter::recover_from_exception(), s, octave::sys::time::stamp(), string, Vdrawnow_requested, and Vlast_prompt_time.
Referenced by octave::base_reader::octave_gets().
|
static |
Definition at line 401 of file input.cc.
References octave::command_editor::get_line_buffer(), i, retval, and string.
Referenced by generate_completion().
|
static |
void remove_input_event_hook_functions | ( | void | ) |
Definition at line 115 of file input.cc.
References hook_function_list::clear(), and input_event_hook_functions.
void set_default_prompts | ( | void | ) |
|
static |
Definition at line 111 of file input.cc.
Referenced by remove_input_event_hook_functions().
|
static |
Definition at line 106 of file input.cc.
Referenced by octave::base_reader::octave_gets().
|
static |
Definition at line 87 of file input.cc.
Referenced by generate_completion().
Definition at line 97 of file input.cc.
Referenced by octave::bp_table::add_breakpoint(), octave::base_reader::octave_gets(), octave::bp_table::parse_dbfunction_params(), octave::bp_table::remove_all_breakpoints(), octave::bp_table::remove_all_breakpoints_in_file(), octave::bp_table::remove_breakpoint(), octave::tree_evaluator::reset_debug_state(), and octave::tree_evaluator::visit_return_command().
Definition at line 94 of file input.cc.
Referenced by delete_graphics_object(), gh_manager::do_execute_callback(), gh_manager::do_process_events(), F__zoom__(), Freset(), G__fltk_check__(), and interactive_input().
octave::sys::time Vlast_prompt_time = 0.0 |
Definition at line 84 of file input.cc.
Referenced by interactive_input(), octave::out_of_date_check(), and rehash_internal().
|
static |
Definition at line 78 of file input.cc.
Referenced by octave::base_reader::octave_gets(), and set_default_prompts().
|
static |
Definition at line 81 of file input.cc.
Referenced by octave::base_reader::octave_gets(), and set_default_prompts().
bool Vtrack_line_num = true |
Definition at line 102 of file input.cc.
Referenced by octave_user_script::call(), octave_user_function::call(), and octave::tree_evaluator::visit_statement().