GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
defaults.cc File Reference
#include <cstdlib>
#include <algorithm>
#include <string>
#include "dir-ops.h"
#include "file-ops.h"
#include "oct-env.h"
#include "defaults.h"
#include "defun.h"
#include "error.h"
#include "ovl.h"
#include "ov.h"
#include "variables.h"
#include "version.h"
#include "default-defs.h"
Include dependency graph for defaults.cc:

Go to the source code of this file.

Functions

std::string arch_lib_dir (void)
 
std::string bin_dir (void)
 
std::string canonical_host_type (void)
 
std::string data_dir (void)
 
std::string dataroot_dir (void)
 
std::string default_pager (void)
 
std::string fcn_file_dir (void)
 
OCTAVE_EXPORT octave_value_list FOCTAVE_EXEC_HOME (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list FOCTAVE_HOME (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list FOCTAVE_VERSION (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fuser_config_dir (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fuser_data_dir (const octave_value_list &args, int)
 
static std::string get_local_site_defaults_file (void)
 
static std::string get_octave_exec_home (void)
 
static std::string get_octave_home (void)
 
static std::string get_site_defaults_file (void)
 
std::string image_dir (void)
 
std::string include_dir (void)
 
std::string info_dir (void)
 
std::string lib_dir (void)
 
std::string libexec_dir (void)
 
std::string local_api_arch_lib_dir (void)
 
std::string local_api_fcn_file_dir (void)
 
std::string local_api_oct_file_dir (void)
 
std::string local_arch_lib_dir (void)
 
std::string local_fcn_file_dir (void)
 
std::string local_oct_file_dir (void)
 
std::string local_site_defaults_file (void)
 
std::string local_startupfile_dir (void)
 
std::string local_ver_arch_lib_dir (void)
 
std::string local_ver_fcn_file_dir (void)
 
std::string local_ver_oct_file_dir (void)
 
std::string man1_dir (void)
 
std::string man1_ext (void)
 
std::string man_dir (void)
 
std::string oct_data_dir (void)
 
std::string oct_doc_dir (void)
 
std::string oct_etc_dir (void)
 
std::string oct_file_dir (void)
 
std::string oct_fonts_dir (void)
 
std::string oct_include_dir (void)
 
std::string oct_lib_dir (void)
 
std::string oct_locale_dir (void)
 
std::string oct_tests_dir (void)
 
std::string octave_exec_home (void)
 
std::string octave_home (void)
 
static std::string prepend_home_dir (const std::string &hd, const std::string &s)
 
std::string prepend_octave_exec_home (const std::string &s)
 
std::string prepend_octave_home (const std::string &s)
 
std::string release (void)
 
std::string site_defaults_file (void)
 
std::string startupfile_dir (void)
 

Function Documentation

◆ arch_lib_dir()

std::string arch_lib_dir ( void  )

◆ bin_dir()

std::string bin_dir ( void  )

Definition at line 171 of file defaults.cc.

References OCTAVE_BINDIR, and prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and environment::init_exec_path().

◆ canonical_host_type()

std::string canonical_host_type ( void  )

Definition at line 135 of file defaults.cc.

Referenced by F__octave_config_info__().

◆ data_dir()

std::string data_dir ( void  )

Definition at line 179 of file defaults.cc.

References prepend_octave_home().

Referenced by env::do_get_user_data_directory(), and F__octave_config_info__().

◆ dataroot_dir()

std::string dataroot_dir ( void  )

Definition at line 187 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__().

◆ default_pager()

std::string default_pager ( void  )

Definition at line 150 of file defaults.cc.

Referenced by F__octave_config_info__().

◆ fcn_file_dir()

std::string fcn_file_dir ( void  )

◆ FOCTAVE_EXEC_HOME()

OCTAVE_EXPORT octave_value_list FOCTAVE_EXEC_HOME ( const octave_value_list args,
int   
)

Definition at line 481 of file defaults.cc.

References octave_exec_home(), ovl(), and print_usage().

◆ FOCTAVE_HOME()

OCTAVE_EXPORT octave_value_list FOCTAVE_HOME ( const octave_value_list args,
int   
)

Definition at line 459 of file defaults.cc.

References octave_home(), ovl(), and print_usage().

◆ FOCTAVE_VERSION()

OCTAVE_EXPORT octave_value_list FOCTAVE_VERSION ( const octave_value_list args,
int   
)

Definition at line 499 of file defaults.cc.

References OCTAVE_VERSION, ovl(), and print_usage().

◆ Fuser_config_dir()

OCTAVE_EXPORT octave_value_list Fuser_config_dir ( const octave_value_list args,
int   
)

Definition at line 517 of file defaults.cc.

References ovl(), and print_usage().

◆ Fuser_data_dir()

OCTAVE_EXPORT octave_value_list Fuser_data_dir ( const octave_value_list args,
int   
)

Definition at line 535 of file defaults.cc.

References ovl(), and print_usage().

◆ get_local_site_defaults_file()

static std::string get_local_site_defaults_file ( void  )
static

Definition at line 111 of file defaults.cc.

References local_startupfile_dir().

Referenced by local_site_defaults_file().

◆ get_octave_exec_home()

static std::string get_octave_exec_home ( void  )
static

Definition at line 89 of file defaults.cc.

References OCTAVE_EXEC_PREFIX, and OCTAVE_PREFIX.

Referenced by octave_exec_home().

◆ get_octave_home()

static std::string get_octave_home ( void  )
static

Definition at line 77 of file defaults.cc.

References OCTAVE_PREFIX.

Referenced by octave_home().

◆ get_site_defaults_file()

static std::string get_site_defaults_file ( void  )
static

Definition at line 118 of file defaults.cc.

References startupfile_dir().

Referenced by site_defaults_file().

◆ image_dir()

std::string image_dir ( void  )

Definition at line 410 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and environment::init_image_path().

◆ include_dir()

std::string include_dir ( void  )

Definition at line 195 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__().

◆ info_dir()

std::string info_dir ( void  )

Definition at line 227 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__().

◆ lib_dir()

std::string lib_dir ( void  )

Definition at line 203 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__().

◆ libexec_dir()

std::string libexec_dir ( void  )

Definition at line 211 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__().

◆ local_api_arch_lib_dir()

std::string local_api_arch_lib_dir ( void  )

Definition at line 243 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and environment::init_exec_path().

◆ local_api_fcn_file_dir()

std::string local_api_fcn_file_dir ( void  )

Definition at line 299 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ local_api_oct_file_dir()

std::string local_api_oct_file_dir ( void  )

Definition at line 267 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ local_arch_lib_dir()

std::string local_arch_lib_dir ( void  )

Definition at line 251 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and environment::init_exec_path().

◆ local_fcn_file_dir()

std::string local_fcn_file_dir ( void  )

Definition at line 307 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ local_oct_file_dir()

std::string local_oct_file_dir ( void  )

Definition at line 275 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ local_site_defaults_file()

std::string local_site_defaults_file ( void  )

Definition at line 434 of file defaults.cc.

References get_local_site_defaults_file().

Referenced by interpreter::execute_startup_files().

◆ local_startupfile_dir()

std::string local_startupfile_dir ( void  )

Definition at line 418 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and get_local_site_defaults_file().

◆ local_ver_arch_lib_dir()

std::string local_ver_arch_lib_dir ( void  )

Definition at line 235 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and environment::init_exec_path().

◆ local_ver_fcn_file_dir()

std::string local_ver_fcn_file_dir ( void  )

Definition at line 291 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ local_ver_oct_file_dir()

std::string local_ver_oct_file_dir ( void  )

Definition at line 259 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ man1_dir()

std::string man1_dir ( void  )

Definition at line 395 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__().

◆ man1_ext()

std::string man1_ext ( void  )

Definition at line 403 of file defaults.cc.

Referenced by F__octave_config_info__().

◆ man_dir()

std::string man_dir ( void  )

Definition at line 387 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__().

◆ oct_data_dir()

std::string oct_data_dir ( void  )

Definition at line 323 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and load_path::initialize().

◆ oct_doc_dir()

std::string oct_doc_dir ( void  )

Definition at line 331 of file defaults.cc.

References prepend_octave_home().

Referenced by documentation::documentation(), and F__octave_config_info__().

◆ oct_etc_dir()

std::string oct_etc_dir ( void  )

Definition at line 339 of file defaults.cc.

References prepend_octave_home().

Referenced by release_notes::release_notes(), and F__octave_config_info__().

◆ oct_file_dir()

◆ oct_fonts_dir()

std::string oct_fonts_dir ( void  )

Definition at line 347 of file defaults.cc.

References prepend_octave_home().

Referenced by ft_manager::do_get_font(), and F__octave_config_info__().

◆ oct_include_dir()

std::string oct_include_dir ( void  )

Definition at line 355 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__().

◆ oct_lib_dir()

std::string oct_lib_dir ( void  )

Definition at line 363 of file defaults.cc.

References prepend_octave_exec_home().

Referenced by F__octave_config_info__().

◆ oct_locale_dir()

std::string oct_locale_dir ( void  )

Definition at line 371 of file defaults.cc.

References prepend_octave_home().

Referenced by resource_manager::get_gui_translation_dir().

◆ oct_tests_dir()

std::string oct_tests_dir ( void  )

Definition at line 379 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__().

◆ octave_exec_home()

◆ octave_home()

std::string octave_home ( void  )

Definition at line 157 of file defaults.cc.

References get_octave_home().

Referenced by FOCTAVE_HOME(), and prepend_octave_home().

◆ prepend_home_dir()

static std::string prepend_home_dir ( const std::string &  hd,
const std::string &  s 
)
static

Definition at line 62 of file defaults.cc.

References absolute_pathname(), and dir_sep_char.

Referenced by prepend_octave_exec_home(), and prepend_octave_home().

◆ prepend_octave_exec_home()

◆ prepend_octave_home()

◆ release()

std::string release ( void  )

◆ site_defaults_file()

std::string site_defaults_file ( void  )

Definition at line 442 of file defaults.cc.

References get_site_defaults_file().

Referenced by interpreter::execute_startup_files().

◆ startupfile_dir()

std::string startupfile_dir ( void  )

Definition at line 426 of file defaults.cc.

References prepend_octave_home().

Referenced by F__octave_config_info__(), and get_site_defaults_file().