![]() |
GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cstdlib>#include <cstring>#include <string>#include <fstream>#include <sys/types.h>#include <unistd.h>#include "cmd-hist.h"#include "file-ops.h"#include "lo-mappers.h"#include "octave-link.h"#include "oct-env.h"#include "oct-time.h"#include "str-vec.h"#include <defaults.h>#include "defun.h"#include "error.h"#include "gripes.h"#include "input.h"#include "oct-hist.h"#include "oct-obj.h"#include "pager.h"#include "parse.h"#include "sighandlers.h"#include "sysdep.h"#include "toplev.h"#include "unwind-prot.h"#include "utils.h"#include "variables.h"
Go to the source code of this file.
Variables | |
| bool | input_from_tmp_history_file = false |
| static std::string | Vhistory_timestamp_format_string = default_history_timestamp_format () |
|
static |
Definition at line 76 of file oct-hist.cc.
References file_ops::concat(), octave_env::get_home_directory(), and octave_env::getenv().
Referenced by do_history(), and initialize_history().
Definition at line 93 of file oct-hist.cc.
References octave_env::getenv(), and size().
Referenced by initialize_history().
|
static |
Definition at line 111 of file oct-hist.cc.
References octave_env::get_host_name(), octave_env::get_user_name(), and OCTAVE_VERSION.
|
static |
Definition at line 471 of file oct-hist.cc.
References action_container::add_fcn(), ECHO_CMD_LINE, edit_history_add_hist(), edit_history_readline(), error(), input_from_tmp_history_file, mk_tmp_hist_file(), octave_ignore_interrupts(), octave_set_interrupt_handler(), action_container::protect_var(), source_file(), unlink_cleanup(), Vecho_executing_commands, and VEDITOR.
Referenced by Fedit_history().
|
static |
Definition at line 133 of file oct-hist.cc.
References action_container::add_fcn(), command_history::append(), arg(), command_history::clear(), octave_link::clear_history(), default_history_file(), error(), command_history::file(), gripe_wrong_type_arg(), octave_value::int_value(), octave_value::is_numeric_type(), octave_value::is_string(), octave_value_list::length(), Array< T >::length(), command_history::list(), octave_stdout, panic_impossible, command_history::read(), command_history::read_range(), command_history::set_file(), octave_link::set_history(), octave_value::string_value(), and command_history::write().
Referenced by Fhistory().
|
static |
Definition at line 541 of file oct-hist.cc.
References action_container::add_fcn(), ECHO_CMD_LINE, input_from_tmp_history_file, mk_tmp_hist_file(), action_container::protect_var(), source_file(), unlink_cleanup(), and Vecho_executing_commands.
Referenced by Frun_history().
|
static |
Definition at line 319 of file oct-hist.cc.
References command_history::add(), and octave_link::append_history().
Referenced by do_edit_history().
|
static |
Definition at line 269 of file oct-hist.cc.
Referenced by do_edit_history().
| OCTAVE_EXPORT octave_value_list Fedit_history | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 619 of file oct-hist.cc.
References do_edit_history().
| OCTAVE_EXPORT octave_value_list Fhistory | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 665 of file oct-hist.cc.
References do_history().
Referenced by main_window::clear_history_callback().
| OCTAVE_EXPORT octave_value_list Fhistory_control | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 756 of file oct-hist.cc.
References command_history::histcontrol(), command_history::process_histcontrol(), and set_internal_variable().
| OCTAVE_EXPORT octave_value_list Fhistory_file | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 807 of file oct-hist.cc.
References command_history::file(), command_history::set_file(), and set_internal_variable().
| OCTAVE_EXPORT octave_value_list Fhistory_save | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 858 of file oct-hist.cc.
References command_history::ignore_entries(), command_history::ignoring_entries(), and set_internal_variable().
Referenced by octave_process_command_line().
| OCTAVE_EXPORT octave_value_list Fhistory_size | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 780 of file oct-hist.cc.
References max(), set_internal_variable(), command_history::set_size(), and command_history::size().
| OCTAVE_EXPORT octave_value_list Fhistory_timestamp_format_string | ( | const octave_value_list & | args, |
| int | nargout | ||
| ) |
Definition at line 841 of file oct-hist.cc.
References SET_INTERNAL_VARIABLE.
Referenced by maximum_braindamage().
| OCTAVE_EXPORT octave_value_list Frun_history | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 726 of file oct-hist.cc.
References do_run_history().
|
static |
Definition at line 337 of file oct-hist.cc.
References octave_value::int_value(), octave_value::is_numeric_type(), octave_value::is_string(), and octave_value::string_value().
Referenced by mk_tmp_hist_file().
Definition at line 563 of file oct-hist.cc.
References default_history_file(), default_history_size(), octave_env::getenv(), command_history::initialize(), command_history::list(), and octave_link::set_history().
Referenced by octave_initialize_interpreter().
|
static |
Definition at line 356 of file oct-hist.cc.
References error(), get_int_arg(), octave_value_list::length(), Array< T >::length(), command_history::list(), octave_tempnam(), command_history::remove(), and usage().
Referenced by do_edit_history(), and do_run_history().
Definition at line 574 of file oct-hist.cc.
References command_history::add(), octave_link::append_history(), octave_base_tm::strftime(), and Vhistory_timestamp_format_string.
Referenced by do_octave_atexit(), and Fexec().
Definition at line 465 of file oct-hist.cc.
Referenced by do_edit_history(), and do_run_history().
| bool input_from_tmp_history_file = false |
Definition at line 73 of file oct-hist.cc.
Referenced by do_edit_history(), and do_run_history().
|
static |
Definition at line 124 of file oct-hist.cc.
Referenced by octave_history_write_timestamp().
1.8.1.2