#include <cstdlib>
#include <cstring>
#include <fstream>
#include <string>
#include "cmd-hist.h"
#include "file-ops.h"
#include "lo-mappers.h"
#include "lo-sysdep.h"
#include "oct-env.h"
#include "oct-time.h"
#include "str-vec.h"
#include "unistd-wrappers.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "event-manager.h"
#include "input.h"
#include "oct-hist.h"
#include "ovl.h"
#include "pager.h"
#include "parse.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "interpreter.h"
#include "interpreter-private.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Functions | |
static void | edit_history_add_hist (const std::string &line) |
static char * | edit_history_readline (std::fstream &stream) |
OCTAVE_EXPORT octave_value_list | Fedit_history (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fhistory (octave::interpreter &interp, const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fhistory_control (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fhistory_file (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fhistory_save (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fhistory_size (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fhistory_timestamp_format_string (octave::interpreter &interp, const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Frun_history (octave::interpreter &interp, const octave_value_list &args, int) |
static bool | get_int_arg (const octave_value &arg, int &val) |
static std::string | mk_tmp_hist_file (const octave_value_list &args, bool insert_curr, const char *warn_for) |
|
static |
Definition at line 130 of file oct-hist.cc.
References __get_event_manager__(), command_history::add(), event_manager::append_history(), and len.
Referenced by history_system::do_edit_history().
|
static |
Definition at line 80 of file oct-hist.cc.
Referenced by history_system::do_edit_history().
OCTAVE_EXPORT octave_value_list Fedit_history | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 613 of file oct-hist.cc.
References history_system::do_edit_history(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fhistory | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 666 of file oct-hist.cc.
References history_system::do_history(), and ovl().
Referenced by octave_qscintilla::contextmenu_run().
OCTAVE_EXPORT octave_value_list Fhistory_control | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 766 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 848 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 912 of file oct-hist.cc.
References command_history::ignore_entries(), command_history::ignoring_entries(), and set_internal_variable().
OCTAVE_EXPORT octave_value_list Fhistory_size | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 792 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 | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 883 of file oct-hist.cc.
References history_system::timestamp_format_string().
OCTAVE_EXPORT octave_value_list Frun_history | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 729 of file oct-hist.cc.
References history_system::do_run_history(), ovl(), and print_usage().
|
static |
Definition at line 154 of file oct-hist.cc.
References octave_value::int_value(), octave_value::is_string(), octave_value::isnumeric(), and octave_value::string_value().
Referenced by mk_tmp_hist_file().
|
static |
Definition at line 173 of file oct-hist.cc.
References error(), get_int_arg(), octave_value_list::length(), command_history::list(), string_vector::numel(), ofstream(), command_history::remove(), and tempnam().
Referenced by history_system::do_edit_history(), and history_system::do_run_history().