26 #if defined (HAVE_CONFIG_H)
48 #include "default-defs.h"
86 return oh.empty () ? op : oh;
105 if (op == oep && ! oh.empty ())
137 static const std::string s_canonical_host_type
140 return s_canonical_host_type;
147 return s_octave_release;
154 return s_default_pager;
161 return s_octave_home;
168 return s_octave_exec_home;
173 static const std::string s_bin_dir
181 static const std::string s_data_dir
189 static const std::string s_dataroot_dir
192 return s_dataroot_dir;
197 static const std::string s_include_dir
200 return s_include_dir;
205 static const std::string s_lib_dir
213 static const std::string s_libexec_dir
216 return s_libexec_dir;
221 static const std::string s_arch_lib_dir
224 return s_arch_lib_dir;
229 static const std::string s_info_dir
237 static const std::string s_local_ver_arch_lib_dir
240 return s_local_ver_arch_lib_dir;
245 static const std::string s_local_api_arch_lib_dir
248 return s_local_api_arch_lib_dir;
253 static const std::string s_local_arch_lib_dir
256 return s_local_arch_lib_dir;
261 static const std::string s_local_ver_oct_file_dir
264 return s_local_ver_oct_file_dir;
269 static const std::string s_local_api_oct_file_dir
272 return s_local_api_oct_file_dir;
277 static const std::string s_local_oct_file_dir
280 return s_local_oct_file_dir;
285 static const std::string s_oct_file_dir
288 return s_oct_file_dir;
293 static const std::string s_local_ver_fcn_file_dir
296 return s_local_ver_fcn_file_dir;
301 static const std::string s_local_api_fcn_file_dir
304 return s_local_api_fcn_file_dir;
309 static const std::string s_local_fcn_file_dir
312 return s_local_fcn_file_dir;
317 static const std::string s_fcn_file_dir
320 return s_fcn_file_dir;
325 static const std::string s_oct_data_dir
328 return s_oct_data_dir;
333 static const std::string s_oct_doc_dir
336 return s_oct_doc_dir;
341 static const std::string s_oct_etc_dir
344 return s_oct_etc_dir;
349 static const std::string s_oct_fonts_dir
352 return s_oct_fonts_dir;
357 static const std::string s_oct_include_dir
360 return s_oct_include_dir;
365 static const std::string s_oct_lib_dir
368 return s_oct_lib_dir;
373 static const std::string s_oct_locale_dir
376 return s_oct_locale_dir;
381 static const std::string s_oct_tests_dir
384 return s_oct_tests_dir;
389 static const std::string s_man_dir
397 static const std::string s_man1_dir
412 static const std::string s_image_dir
420 static const std::string s_local_startupfile_dir
423 return s_local_startupfile_dir;
428 static const std::string s_startupfile_dir
431 return s_startupfile_dir;
436 static const std::string s_local_site_defaults_file
439 return s_local_site_defaults_file;
444 static const std::string s_site_defaults_file
447 return s_site_defaults_file;
453 DEFUN (OCTAVE_HOME, args, ,
461 if (args.length () != 0)
472 DEFUN (OCTAVE_EXEC_HOME, args, ,
482 if (args.length () != 0)
500 if (args.length () != 0)
static std::string getenv(const std::string &name)
static bool absolute_pathname(const std::string &s)
#define OCTAVE_LOCALSTARTUPFILEDIR
#define OCTAVE_LOCALVERFCNFILEDIR
#define OCTAVE_OCTINCLUDEDIR
#define OCTAVE_LOCALAPIOCTFILEDIR
#define OCTAVE_LIBEXECDIR
#define OCTAVE_LOCALVEROCTFILEDIR
#define OCTAVE_OCTFONTSDIR
#define OCTAVE_OCTDATADIR
#define OCTAVE_OCTLOCALEDIR
#define OCTAVE_FCNFILEDIR
#define OCTAVE_LOCALOCTFILEDIR
#define OCTAVE_LOCALAPIARCHLIBDIR
#define OCTAVE_STARTUPFILEDIR
#define OCTAVE_INCLUDEDIR
#define OCTAVE_OCTTESTSDIR
#define OCTAVE_DEFAULT_PAGER
#define OCTAVE_OCTFILEDIR
#define OCTAVE_LOCALARCHLIBDIR
#define OCTAVE_LOCALVERARCHLIBDIR
#define OCTAVE_LOCALFCNFILEDIR
#define OCTAVE_LOCALAPIFCNFILEDIR
#define OCTAVE_DATAROOTDIR
OCTAVE_EXPORT octave_value_list FOCTAVE_VERSION(const octave_value_list &args, int)
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
#define DEFUNX(name, fname, args_name, nargout_name, doc)
Macro to define a builtin function with certain internal name.
#define OCTAVE_ARCHLIBDIR
#define OCTAVE_EXEC_PREFIX
std::string local_site_defaults_file(void)
std::string site_defaults_file(void)
std::string local_ver_oct_file_dir(void)
std::string local_fcn_file_dir(void)
std::string octave_exec_home(void)
std::string oct_data_dir(void)
std::string oct_doc_dir(void)
std::string oct_fonts_dir(void)
std::string dataroot_dir(void)
std::string image_dir(void)
std::string default_pager(void)
std::string canonical_host_type(void)
std::string octave_home(void)
std::string startupfile_dir(void)
std::string local_ver_arch_lib_dir(void)
std::string oct_file_dir(void)
std::string local_arch_lib_dir(void)
std::string arch_lib_dir(void)
static std::string get_octave_home(void)
std::string include_dir(void)
std::string local_oct_file_dir(void)
std::string info_dir(void)
static std::string get_site_defaults_file(void)
std::string local_api_oct_file_dir(void)
std::string libexec_dir(void)
std::string oct_lib_dir(void)
std::string man_dir(void)
std::string man1_ext(void)
std::string local_api_arch_lib_dir(void)
std::string man1_dir(void)
std::string data_dir(void)
std::string local_api_fcn_file_dir(void)
std::string lib_dir(void)
std::string oct_locale_dir(void)
static std::string get_local_site_defaults_file(void)
std::string prepend_octave_home(const std::string &s)
static std::string get_octave_exec_home(void)
std::string local_startupfile_dir(void)
std::string prepend_octave_exec_home(const std::string &s)
std::string oct_etc_dir(void)
std::string bin_dir(void)
std::string oct_include_dir(void)
std::string fcn_file_dir(void)
std::string oct_tests_dir(void)
std::string release(void)
std::string local_ver_fcn_file_dir(void)
static std::string prepend_home_dir(const std::string &hd, const std::string &s)
octave_value::octave_value(const Array< char > &chm, char type) return retval
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.
static const char dir_sep_char
#define OCTAVE_CANONICAL_HOST_TYPE