GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-hist.cc File Reference
#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"
Include dependency graph for oct-hist.cc:

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)
 

Function Documentation

◆ edit_history_add_hist()

static void edit_history_add_hist ( const std::string &  line)
static

◆ edit_history_readline()

static char* edit_history_readline ( std::fstream stream)
static

Definition at line 80 of file oct-hist.cc.

Referenced by history_system::do_edit_history().

◆ Fedit_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().

◆ Fhistory()

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().

◆ Fhistory_control()

OCTAVE_EXPORT octave_value_list Fhistory_control ( const octave_value_list args,
int  nargout 
)

◆ Fhistory_file()

OCTAVE_EXPORT octave_value_list Fhistory_file ( const octave_value_list args,
int  nargout 
)

◆ Fhistory_save()

OCTAVE_EXPORT octave_value_list Fhistory_save ( const octave_value_list args,
int  nargout 
)

◆ Fhistory_size()

OCTAVE_EXPORT octave_value_list Fhistory_size ( const octave_value_list args,
int  nargout 
)

◆ Fhistory_timestamp_format_string()

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().

◆ Frun_history()

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().

◆ get_int_arg()

static bool get_int_arg ( const octave_value arg,
int &  val 
)
static

◆ mk_tmp_hist_file()

static std::string mk_tmp_hist_file ( const octave_value_list args,
bool  insert_curr,
const char *  warn_for 
)
static