GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
load-path.cc File Reference
#include <algorithm>
#include <cctype>
#include "dir-ops.h"
#include "file-ops.h"
#include "file-stat.h"
#include "oct-env.h"
#include "pathsearch.h"
#include "defaults.h"
#include "defun.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-path.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
Include dependency graph for load-path.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list F__dump_load_path__ (octave::interpreter &interp, const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list F__pathorig__ (octave::interpreter &interp, const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Faddpath (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fcommand_line_path (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fgenpath (const octave_value_list &args, int)
 
static std::string find_private_file (const std::string &fname)
 
OCTAVE_EXPORT octave_value_list Fpath (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Frehash (const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Frestoredefaultpath (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frmpath (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
std::string genpath (const std::string &dirname, const string_vector &skip)
 
load_path::dir_info::fcn_file_map_type get_fcn_files (const std::string &d)
 
static bool in_path_list (const std::string &path_list, const std::string &path)
 
static void maybe_add_path_elts (std::string &path, const std::string &dir)
 
static std::string maybe_canonicalize (const std::string &dir_arg)
 
static void rehash_internal (void)
 
static std::list< std::string > split_path (const std::string &p)
 
static std::string strip_trailing_separators (const std::string &dir_arg)
 
static bool subdirs_modified (const std::string &d, const sys::time &last_checked)
 

Function Documentation

◆ F__dump_load_path__()

OCTAVE_EXPORT octave_value_list F__dump_load_path__ ( octave::interpreter &  interp,
const octave_value_list ,
int   
)

Definition at line 2826 of file load-path.cc.

References load_path::display(), octave_stdout, and ovl().

◆ F__pathorig__()

OCTAVE_EXPORT octave_value_list F__pathorig__ ( octave::interpreter &  interp,
const octave_value_list ,
int   
)

Definition at line 2559 of file load-path.cc.

References ovl(), and load_path::system_path().

◆ Faddpath()

◆ Fcommand_line_path()

OCTAVE_EXPORT octave_value_list Fcommand_line_path ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 2521 of file load-path.cc.

References load_path::get_command_line_path(), ovl(), and print_usage().

◆ Fgenpath()

OCTAVE_EXPORT octave_value_list Fgenpath ( const octave_value_list args,
int   
)

Definition at line 2473 of file load-path.cc.

References dirname(), genpath(), and print_usage().

Referenced by main_window::modify_path().

◆ find_private_file()

static std::string find_private_file ( const std::string &  fname)
static

◆ Fpath()

OCTAVE_EXPORT octave_value_list Fpath ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ Frehash()

OCTAVE_EXPORT octave_value_list Frehash ( const octave_value_list ,
int   
)

Definition at line 2507 of file load-path.cc.

References ovl(), and rehash_internal().

◆ Frestoredefaultpath()

OCTAVE_EXPORT octave_value_list Frestoredefaultpath ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 2538 of file load-path.cc.

References load_path::initialize(), ovl(), print_usage(), and load_path::system_path().

◆ Frmpath()

OCTAVE_EXPORT octave_value_list Frmpath ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ genpath()

std::string genpath ( const std::string &  dirname,
const string_vector skip 
)

◆ get_fcn_files()

load_path::dir_info::fcn_file_map_type get_fcn_files ( const std::string &  d)

Definition at line 1338 of file load-path.cc.

◆ in_path_list()

static bool in_path_list ( const std::string &  path_list,
const std::string &  path 
)
static

Definition at line 192 of file load-path.cc.

References directory_path::path_sep_char().

Referenced by load_path::package_info::add_to_fcn_map().

◆ maybe_add_path_elts()

static void maybe_add_path_elts ( std::string &  path,
const std::string &  dir 
)
static

Definition at line 86 of file load-path.cc.

References genpath(), maybe_canonicalize(), and directory_path::path_sep_str().

Referenced by load_path::initialize().

◆ maybe_canonicalize()

static std::string maybe_canonicalize ( const std::string &  dir_arg)
static

◆ rehash_internal()

static void rehash_internal ( void  )
static

◆ split_path()

static std::list<std::string> split_path ( const std::string &  p)
static

Definition at line 100 of file load-path.cc.

References len, and directory_path::path_sep_char().

Referenced by Faddpath(), Frmpath(), and load_path::set().

◆ strip_trailing_separators()

static std::string strip_trailing_separators ( const std::string &  dir_arg)
static

Definition at line 135 of file load-path.cc.

References is_dir_sep().

Referenced by load_path::add(), and load_path::remove().

◆ subdirs_modified()

static bool subdirs_modified ( const std::string &  d,
const sys::time &  last_checked 
)
static

Definition at line 252 of file load-path.cc.

References concat(), d, len, string_vector::numel(), and warning().

Referenced by load_path::dir_info::update().