GNU Octave
3.8.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_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 486 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 519 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 554 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 577 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 598 of file defaults.cc.
References octave_value::length(), OCTAVE_VERSION, and print_usage().
Referenced by install_defaults_fcns().
Definition at line 412 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_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().
Definition at line 397 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().
Definition at line 150 of file defaults.cc.
References OCTAVE_ARCHLIBDIR, subst_octave_home(), and Varch_lib_dir.
Referenced by install_defaults().
Definition at line 240 of file defaults.cc.
References OCTAVE_BINDIR, subst_octave_home(), and Vbin_dir.
Referenced by install_defaults().
Definition at line 138 of file defaults.cc.
References OCTAVE_DATADIR, subst_octave_home(), and Vdata_dir.
Referenced by install_defaults().
Definition at line 304 of file defaults.cc.
References octave_env::getenv(), OCTAVE_DOC_CACHE_FILE, subst_octave_home(), and Vdoc_cache_file.
Referenced by install_defaults().
Definition at line 357 of file defaults.cc.
References octave_env::getenv(), and VEDITOR.
Referenced by install_defaults().
Definition at line 210 of file defaults.cc.
References OCTAVE_FCNFILEDIR, subst_octave_home(), and Vfcn_file_dir.
Referenced by install_defaults().
Definition at line 216 of file defaults.cc.
References OCTAVE_IMAGEDIR, subst_octave_home(), and Vimage_dir.
Referenced by install_defaults().
Definition at line 132 of file defaults.cc.
References OCTAVE_INFODIR, subst_octave_home(), and Vinfo_dir.
Referenced by install_defaults().
Definition at line 330 of file defaults.cc.
References octave_env::getenv(), OCTAVE_INFOFILE, subst_octave_home(), and Vinfo_file.
Referenced by install_defaults().
Definition at line 343 of file defaults.cc.
References octave_env::getenv(), and Vinfo_program.
Referenced by install_defaults().
Definition at line 144 of file defaults.cc.
References OCTAVE_LIBEXECDIR, subst_octave_home(), and Vlibexec_dir.
Referenced by install_defaults().
Definition at line 162 of file defaults.cc.
References OCTAVE_LOCALAPIARCHLIBDIR, subst_octave_home(), and Vlocal_api_arch_lib_dir.
Referenced by install_defaults().
Definition at line 198 of file defaults.cc.
References OCTAVE_LOCALAPIFCNFILEDIR, subst_octave_home(), and Vlocal_api_fcn_file_dir.
Referenced by install_defaults().
Definition at line 180 of file defaults.cc.
References OCTAVE_LOCALAPIOCTFILEDIR, subst_octave_home(), and Vlocal_api_oct_file_dir.
Referenced by install_defaults().
Definition at line 156 of file defaults.cc.
References OCTAVE_LOCALARCHLIBDIR, subst_octave_home(), and Vlocal_arch_lib_dir.
Referenced by install_defaults().
Definition at line 204 of file defaults.cc.
References OCTAVE_LOCALFCNFILEDIR, subst_octave_home(), and Vlocal_fcn_file_dir.
Referenced by install_defaults().
Definition at line 186 of file defaults.cc.
References OCTAVE_LOCALOCTFILEDIR, subst_octave_home(), and Vlocal_oct_file_dir.
Referenced by install_defaults().
Definition at line 168 of file defaults.cc.
References OCTAVE_LOCALVERARCHLIBDIR, subst_octave_home(), and Vlocal_ver_arch_lib_dir.
Referenced by install_defaults().
Definition at line 192 of file defaults.cc.
References OCTAVE_LOCALVERFCNFILEDIR, subst_octave_home(), and Vlocal_ver_fcn_file_dir.
Referenced by install_defaults().
Definition at line 174 of file defaults.cc.
References OCTAVE_LOCALVEROCTFILEDIR, subst_octave_home(), and Vlocal_ver_oct_file_dir.
Referenced by install_defaults().
Definition at line 222 of file defaults.cc.
References OCTAVE_OCTETCDIR, subst_octave_home(), and Voct_etc_dir.
Referenced by install_defaults().
Definition at line 234 of file defaults.cc.
References OCTAVE_OCTFILEDIR, subst_octave_home(), and Voct_file_dir.
Referenced by install_defaults().
Definition at line 228 of file defaults.cc.
References OCTAVE_OCTLOCALEDIR, subst_octave_home(), and Voct_locale_dir.
Referenced by install_defaults().
Definition at line 317 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 246 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 285 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().
Definition at line 368 of file defaults.cc.
References octave_env::getenv(), OCTAVE_LOCALSTARTUPFILEDIR, subst_octave_home(), and Vlocal_site_defaults_file.
Referenced by install_defaults().
Definition at line 124 of file defaults.cc.
References octave_env::getenv(), OCTAVE_PREFIX, and Voctave_home.
Referenced by install_defaults().
Definition at line 383 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 100 of file defaults.cc.
References file_ops::dir_sep_char(), OCTAVE_PREFIX, replace(), and Voctave_home.
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 97 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 90 of file defaults.cc.
Referenced by do_edit_history(), and set_default_editor().
|
static |
Definition at line 87 of file defaults.cc.
Referenced by FEXEC_PATH(), and set_exec_path().
std::string Vfcn_file_dir |
Definition at line 81 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 83 of file defaults.cc.
Referenced by set_default_image_dir(), and set_image_path().
|
static |
Definition at line 92 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 94 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_etc_dir |
Definition at line 77 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 80 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 78 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 95 of file defaults.cc.
Referenced by execute_startup_files(), and set_site_defaults_file().