GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
defaults.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1993-2025 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_defaults_h)
27#define octave_defaults_h 1
28
29#include "octave-config.h"
30
31#include <string>
32
33#include "pathsearch.h"
34
36
38
39extern OCTINTERP_API std::string
40prepend_octave_home (const std::string& s);
41
42extern OCTINTERP_API std::string
43prepend_octave_exec_home (const std::string& s);
44
45// These could be defined as pure constants, but we'll use
46// functions to be consistent with the values that require
47// initialization.
48
49extern OCTINTERP_API std::string canonical_host_type ();
50extern OCTINTERP_API std::string release ();
51extern OCTINTERP_API std::string default_pager ();
52
53// These require initialization, so can't be defined as pure
54// constants. We use functions to access these values so that
55// they can't be modified by users.
56
57extern OCTINTERP_API std::string octave_home ();
58extern OCTINTERP_API std::string octave_exec_home ();
59
60extern OCTINTERP_API std::string bin_dir ();
61extern OCTINTERP_API std::string data_dir ();
62extern OCTINTERP_API std::string dataroot_dir ();
63extern OCTINTERP_API std::string include_dir ();
64extern OCTINTERP_API std::string lib_dir ();
65extern OCTINTERP_API std::string libexec_dir ();
66
67extern OCTINTERP_API std::string local_ver_arch_lib_dir ();
68extern OCTINTERP_API std::string local_api_arch_lib_dir ();
69extern OCTINTERP_API std::string local_arch_lib_dir ();
70extern OCTINTERP_API std::string arch_lib_dir ();
71
72extern OCTINTERP_API std::string local_ver_oct_file_dir ();
73extern OCTINTERP_API std::string local_api_oct_file_dir ();
74extern OCTINTERP_API std::string local_oct_file_dir ();
75extern OCTINTERP_API std::string oct_file_dir ();
76
77extern OCTINTERP_API std::string local_ver_fcn_file_dir ();
78extern OCTINTERP_API std::string local_api_fcn_file_dir ();
79extern OCTINTERP_API std::string local_fcn_file_dir ();
80extern OCTINTERP_API std::string fcn_file_dir ();
81
82extern OCTINTERP_API std::string oct_data_dir ();
83extern OCTINTERP_API std::string oct_doc_dir ();
84extern OCTINTERP_API std::string oct_etc_dir ();
85extern OCTINTERP_API std::string oct_fonts_dir ();
86extern OCTINTERP_API std::string oct_include_dir ();
87extern OCTINTERP_API std::string oct_lib_dir ();
88extern OCTINTERP_API std::string oct_locale_dir ();
89extern OCTINTERP_API std::string oct_tests_dir ();
90
91extern OCTINTERP_API std::string local_api_pkg_dir ();
92
93extern OCTINTERP_API std::string info_dir ();
94
95extern OCTINTERP_API std::string man_dir ();
96extern OCTINTERP_API std::string man1_dir ();
97extern OCTINTERP_API std::string man1_ext ();
98
99extern OCTINTERP_API std::string image_dir ();
100
101extern OCTINTERP_API std::string local_startupfile_dir ();
102extern OCTINTERP_API std::string startupfile_dir ();
103
104extern OCTINTERP_API std::string local_site_defaults_file ();
105extern OCTINTERP_API std::string site_defaults_file ();
106
107OCTAVE_END_NAMESPACE(config)
108
109OCTAVE_END_NAMESPACE(octave)
110
111#endif
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::string startupfile_dir()
Definition defaults.cc:470
std::string man_dir()
Definition defaults.cc:426
std::string dataroot_dir()
Definition defaults.cc:201
std::string oct_doc_dir()
Definition defaults.cc:363
std::string default_pager()
Definition defaults.cc:159
std::string local_ver_arch_lib_dir()
Definition defaults.cc:255
std::string local_oct_file_dir()
Definition defaults.cc:300
std::string prepend_octave_home(const std::string &s)
Definition defaults.cc:130
std::string local_startupfile_dir()
Definition defaults.cc:461
std::string octave_exec_home()
Definition defaults.cc:175
std::string local_api_pkg_dir()
Definition defaults.cc:479
std::string canonical_host_type()
Definition defaults.cc:142
std::string oct_fonts_dir()
Definition defaults.cc:381
std::string lib_dir()
Definition defaults.cc:219
std::string local_fcn_file_dir()
Definition defaults.cc:336
std::string include_dir()
Definition defaults.cc:210
std::string local_api_oct_file_dir()
Definition defaults.cc:291
std::string local_arch_lib_dir()
Definition defaults.cc:273
std::string info_dir()
Definition defaults.cc:246
std::string oct_tests_dir()
Definition defaults.cc:417
std::string fcn_file_dir()
Definition defaults.cc:345
std::string site_defaults_file()
Definition defaults.cc:497
std::string bin_dir()
Definition defaults.cc:183
std::string local_api_fcn_file_dir()
Definition defaults.cc:327
std::string local_ver_fcn_file_dir()
Definition defaults.cc:318
std::string man1_dir()
Definition defaults.cc:435
std::string octave_home()
Definition defaults.cc:167
std::string oct_etc_dir()
Definition defaults.cc:372
std::string prepend_octave_exec_home(const std::string &s)
Definition defaults.cc:136
std::string local_ver_oct_file_dir()
Definition defaults.cc:282
std::string local_api_arch_lib_dir()
Definition defaults.cc:264
std::string man1_ext()
Definition defaults.cc:444
std::string libexec_dir()
Definition defaults.cc:228
std::string image_dir()
Definition defaults.cc:452
std::string local_site_defaults_file()
Definition defaults.cc:488
std::string oct_locale_dir()
Definition defaults.cc:408
std::string oct_file_dir()
Definition defaults.cc:309
std::string oct_data_dir()
Definition defaults.cc:354
std::string release()
Definition defaults.cc:151
std::string oct_include_dir()
Definition defaults.cc:390
std::string oct_lib_dir()
Definition defaults.cc:399
std::string data_dir()
Definition defaults.cc:192
std::string arch_lib_dir()
Definition defaults.cc:237