GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <string>
#include <sys/types.h>
#include <unistd.h>
#include "dir-ops.h"
#include "oct-env.h"
#include "file-stat.h"
#include "pathsearch.h"
#include "str-vec.h"
#include <defaults.h>
#include "defun.h"
#include "error.h"
#include "file-ops.h"
#include "gripes.h"
#include "help.h"
#include "input.h"
#include "load-path.h"
#include "oct-obj.h"
#include "ov.h"
#include "parse.h"
#include "toplev.h"
#include "unwind-prot.h"
#include "variables.h"
#include <version.h>
Go to the source code of this file.
Variables | |
std::string | Varch_lib_dir |
std::string | Vbin_dir |
std::string | Vbuilt_in_docstrings_file |
std::string | Vdata_dir |
std::string | VEDITOR |
static std::string | VEXEC_PATH |
std::string | Vfcn_file_dir |
std::string | Vimage_dir |
static std::string | VIMAGE_PATH |
std::string | Vinfo_dir |
std::string | Vlibexec_dir |
std::string | Vlocal_api_arch_lib_dir |
std::string | Vlocal_api_fcn_file_dir |
std::string | Vlocal_api_oct_file_dir |
std::string | Vlocal_arch_lib_dir |
std::string | Vlocal_fcn_file_dir |
std::string | Vlocal_oct_file_dir |
std::string | Vlocal_site_defaults_file |
std::string | Vlocal_ver_arch_lib_dir |
std::string | Vlocal_ver_fcn_file_dir |
std::string | Vlocal_ver_oct_file_dir |
std::string | Voct_data_dir |
std::string | Voct_etc_dir |
std::string | Voct_file_dir |
std::string | Voct_locale_dir |
std::string | Voctave_home |
std::string | Vsite_defaults_file |
OCTAVE_EXPORT octave_value_list FEDITOR | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 493 of file defaults.cc.
References SET_NONEMPTY_INTERNAL_STRING_VARIABLE.
OCTAVE_EXPORT octave_value_list FEXEC_PATH | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 528 of file defaults.cc.
References set_exec_path(), SET_NONEMPTY_INTERNAL_STRING_VARIABLE, and VEXEC_PATH.
OCTAVE_EXPORT octave_value_list FIMAGE_PATH | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 563 of file defaults.cc.
References SET_NONEMPTY_INTERNAL_STRING_VARIABLE.
OCTAVE_EXPORT octave_value_list FOCTAVE_HOME | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 585 of file defaults.cc.
References print_usage(), and Voctave_home.
OCTAVE_EXPORT octave_value_list FOCTAVE_VERSION | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 607 of file defaults.cc.
References octave_value::length(), OCTAVE_VERSION, and print_usage().
Referenced by install_defaults_fcns().
void install_defaults | ( | void | ) |
Definition at line 419 of file defaults.cc.
References set_built_in_docstrings_file(), set_default_arch_lib_dir(), set_default_bin_dir(), set_default_data_dir(), set_default_doc_cache_file(), set_default_editor(), set_default_fcn_file_dir(), set_default_image_dir(), set_default_info_dir(), set_default_info_file(), set_default_info_prog(), set_default_libexec_dir(), set_default_local_api_arch_lib_dir(), set_default_local_api_fcn_file_dir(), set_default_local_api_oct_file_dir(), set_default_local_arch_lib_dir(), set_default_local_fcn_file_dir(), set_default_local_oct_file_dir(), set_default_local_ver_arch_lib_dir(), set_default_local_ver_fcn_file_dir(), set_default_local_ver_oct_file_dir(), set_default_oct_data_dir(), set_default_oct_etc_dir(), set_default_oct_file_dir(), set_default_oct_locale_dir(), set_default_texi_macros_file(), set_exec_path(), set_image_path(), set_local_site_defaults_file(), set_octave_home(), and set_site_defaults_file().
Referenced by main(), and octave_main().
|
static |
Definition at line 404 of file defaults.cc.
References file_ops::dir_sep_str(), octave_env::getenv(), Vbuilt_in_docstrings_file, and Voct_etc_dir.
Referenced by install_defaults().
|
static |
Definition at line 151 of file defaults.cc.
References OCTAVE_ARCHLIBDIR, subst_octave_home(), and Varch_lib_dir.
Referenced by install_defaults().
|
static |
Definition at line 247 of file defaults.cc.
References OCTAVE_BINDIR, subst_octave_home(), and Vbin_dir.
Referenced by install_defaults().
|
static |
Definition at line 139 of file defaults.cc.
References OCTAVE_DATADIR, subst_octave_home(), and Vdata_dir.
Referenced by install_defaults().
|
static |
Definition at line 311 of file defaults.cc.
References octave_env::getenv(), OCTAVE_DOC_CACHE_FILE, subst_octave_home(), and Vdoc_cache_file.
Referenced by install_defaults().
|
static |
Definition at line 364 of file defaults.cc.
References octave_env::getenv(), and VEDITOR.
Referenced by install_defaults().
|
static |
Definition at line 211 of file defaults.cc.
References OCTAVE_FCNFILEDIR, subst_octave_home(), and Vfcn_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 217 of file defaults.cc.
References OCTAVE_IMAGEDIR, subst_octave_home(), and Vimage_dir.
Referenced by install_defaults().
|
static |
Definition at line 133 of file defaults.cc.
References OCTAVE_INFODIR, subst_octave_home(), and Vinfo_dir.
Referenced by install_defaults().
|
static |
Definition at line 337 of file defaults.cc.
References octave_env::getenv(), OCTAVE_INFOFILE, subst_octave_home(), and Vinfo_file.
Referenced by install_defaults().
|
static |
Definition at line 350 of file defaults.cc.
References octave_env::getenv(), and Vinfo_program.
Referenced by install_defaults().
|
static |
Definition at line 145 of file defaults.cc.
References OCTAVE_LIBEXECDIR, subst_octave_home(), and Vlibexec_dir.
Referenced by install_defaults().
|
static |
Definition at line 163 of file defaults.cc.
References OCTAVE_LOCALAPIARCHLIBDIR, subst_octave_home(), and Vlocal_api_arch_lib_dir.
Referenced by install_defaults().
|
static |
Definition at line 199 of file defaults.cc.
References OCTAVE_LOCALAPIFCNFILEDIR, subst_octave_home(), and Vlocal_api_fcn_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 181 of file defaults.cc.
References OCTAVE_LOCALAPIOCTFILEDIR, subst_octave_home(), and Vlocal_api_oct_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 157 of file defaults.cc.
References OCTAVE_LOCALARCHLIBDIR, subst_octave_home(), and Vlocal_arch_lib_dir.
Referenced by install_defaults().
|
static |
Definition at line 205 of file defaults.cc.
References OCTAVE_LOCALFCNFILEDIR, subst_octave_home(), and Vlocal_fcn_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 187 of file defaults.cc.
References OCTAVE_LOCALOCTFILEDIR, subst_octave_home(), and Vlocal_oct_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 169 of file defaults.cc.
References OCTAVE_LOCALVERARCHLIBDIR, subst_octave_home(), and Vlocal_ver_arch_lib_dir.
Referenced by install_defaults().
|
static |
Definition at line 193 of file defaults.cc.
References OCTAVE_LOCALVERFCNFILEDIR, subst_octave_home(), and Vlocal_ver_fcn_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 175 of file defaults.cc.
References OCTAVE_LOCALVEROCTFILEDIR, subst_octave_home(), and Vlocal_ver_oct_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 223 of file defaults.cc.
References OCTAVE_OCTDATADIR, subst_octave_home(), and Voct_data_dir.
Referenced by install_defaults().
|
static |
Definition at line 229 of file defaults.cc.
References OCTAVE_OCTETCDIR, subst_octave_home(), and Voct_etc_dir.
Referenced by install_defaults().
|
static |
Definition at line 241 of file defaults.cc.
References OCTAVE_OCTFILEDIR, subst_octave_home(), and Voct_file_dir.
Referenced by install_defaults().
|
static |
Definition at line 235 of file defaults.cc.
References OCTAVE_OCTLOCALEDIR, subst_octave_home(), and Voct_locale_dir.
Referenced by install_defaults().
|
static |
Definition at line 324 of file defaults.cc.
References octave_env::getenv(), OCTAVE_TEXI_MACROS_FILE, subst_octave_home(), and Vtexi_macros_file.
Referenced by install_defaults().
void set_exec_path | ( | const std::string & | path_arg | ) |
Definition at line 253 of file defaults.cc.
References octave_env::getenv(), dir_path::path_sep_str(), octave_env::putenv(), Varch_lib_dir, Vbin_dir, VEXEC_PATH, Vlocal_api_arch_lib_dir, Vlocal_arch_lib_dir, and Vlocal_ver_arch_lib_dir.
Referenced by FEXEC_PATH(), install_defaults(), and octave_initialize_interpreter().
void set_image_path | ( | const std::string & | path | ) |
Definition at line 292 of file defaults.cc.
References genpath(), octave_env::getenv(), dir_path::path_sep_str(), Vimage_dir, and VIMAGE_PATH.
Referenced by install_defaults(), and octave_initialize_interpreter().
|
static |
Definition at line 375 of file defaults.cc.
References octave_env::getenv(), OCTAVE_LOCALSTARTUPFILEDIR, subst_octave_home(), and Vlocal_site_defaults_file.
Referenced by install_defaults().
|
static |
Definition at line 125 of file defaults.cc.
References octave_env::getenv(), OCTAVE_PREFIX, and Voctave_home.
Referenced by install_defaults().
|
static |
Definition at line 390 of file defaults.cc.
References octave_env::getenv(), OCTAVE_STARTUPFILEDIR, subst_octave_home(), and Vsite_defaults_file.
Referenced by install_defaults().
std::string subst_octave_home | ( | const std::string & | s | ) |
Definition at line 101 of file defaults.cc.
References file_ops::dir_sep_char(), OCTAVE_PREFIX, replace(), and Voctave_home.
Referenced by set_default_arch_lib_dir(), set_default_bin_dir(), set_default_data_dir(), set_default_doc_cache_file(), set_default_fcn_file_dir(), set_default_image_dir(), set_default_info_dir(), set_default_info_file(), set_default_libexec_dir(), set_default_local_api_arch_lib_dir(), set_default_local_api_fcn_file_dir(), set_default_local_api_oct_file_dir(), set_default_local_arch_lib_dir(), set_default_local_fcn_file_dir(), set_default_local_oct_file_dir(), set_default_local_ver_arch_lib_dir(), set_default_local_ver_fcn_file_dir(), set_default_local_ver_oct_file_dir(), set_default_oct_data_dir(), set_default_oct_etc_dir(), set_default_oct_file_dir(), set_default_oct_locale_dir(), set_default_texi_macros_file(), set_local_site_defaults_file(), and set_site_defaults_file().
std::string Varch_lib_dir |
Definition at line 64 of file defaults.cc.
Referenced by set_default_arch_lib_dir(), and set_exec_path().
std::string Vbin_dir |
Definition at line 60 of file defaults.cc.
Referenced by set_default_bin_dir(), and set_exec_path().
std::string Vbuilt_in_docstrings_file |
Definition at line 98 of file defaults.cc.
Referenced by install_built_in_docstrings(), and set_built_in_docstrings_file().
std::string Vdata_dir |
Definition at line 62 of file defaults.cc.
Referenced by set_default_data_dir().
std::string VEDITOR |
Definition at line 91 of file defaults.cc.
Referenced by do_edit_history(), and set_default_editor().
|
static |
Definition at line 88 of file defaults.cc.
Referenced by FEXEC_PATH(), and set_exec_path().
std::string Vfcn_file_dir |
Definition at line 82 of file defaults.cc.
Referenced by load_path::do_initialize(), octave_user_function::mark_as_system_fcn_file(), and set_default_fcn_file_dir().
std::string Vimage_dir |
Definition at line 84 of file defaults.cc.
Referenced by set_default_image_dir(), and set_image_path().
|
static |
Definition at line 93 of file defaults.cc.
Referenced by set_image_path().
std::string Vinfo_dir |
Definition at line 61 of file defaults.cc.
Referenced by set_default_info_dir().
std::string Vlibexec_dir |
Definition at line 63 of file defaults.cc.
Referenced by set_default_libexec_dir().
std::string Vlocal_api_arch_lib_dir |
Definition at line 66 of file defaults.cc.
Referenced by set_default_local_api_arch_lib_dir(), and set_exec_path().
std::string Vlocal_api_fcn_file_dir |
Definition at line 74 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_local_api_fcn_file_dir().
std::string Vlocal_api_oct_file_dir |
Definition at line 70 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_local_api_oct_file_dir().
std::string Vlocal_arch_lib_dir |
Definition at line 65 of file defaults.cc.
Referenced by set_default_local_arch_lib_dir(), and set_exec_path().
std::string Vlocal_fcn_file_dir |
Definition at line 75 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_local_fcn_file_dir().
std::string Vlocal_oct_file_dir |
Definition at line 71 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_local_oct_file_dir().
std::string Vlocal_site_defaults_file |
Definition at line 95 of file defaults.cc.
Referenced by execute_startup_files(), and set_local_site_defaults_file().
std::string Vlocal_ver_arch_lib_dir |
Definition at line 67 of file defaults.cc.
Referenced by set_default_local_ver_arch_lib_dir(), and set_exec_path().
std::string Vlocal_ver_fcn_file_dir |
Definition at line 73 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_local_ver_fcn_file_dir().
std::string Vlocal_ver_oct_file_dir |
Definition at line 69 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_local_ver_oct_file_dir().
std::string Voct_data_dir |
Definition at line 77 of file defaults.cc.
Referenced by load_path::do_initialize(), and set_default_oct_data_dir().
std::string Voct_etc_dir |
Definition at line 78 of file defaults.cc.
Referenced by default_qt_settings_file(), main_window::display_release_notes(), set_built_in_docstrings_file(), and set_default_oct_etc_dir().
std::string Voct_file_dir |
Definition at line 81 of file defaults.cc.
Referenced by load_path::do_initialize(), octave_dld_function::octave_dld_function(), octave_mex_function::octave_mex_function(), and set_default_oct_file_dir().
std::string Voct_locale_dir |
Definition at line 79 of file defaults.cc.
Referenced by resource_manager::get_gui_translation_dir(), and set_default_oct_locale_dir().
std::string Voctave_home |
Definition at line 58 of file defaults.cc.
Referenced by FOCTAVE_HOME(), set_octave_home(), and subst_octave_home().
std::string Vsite_defaults_file |
Definition at line 96 of file defaults.cc.
Referenced by execute_startup_files(), and set_site_defaults_file().