GNU Octave 11.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-2026 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
37
38extern OCTINTERP_API std::string
39prepend_octave_home (const std::string& s);
40
41extern OCTINTERP_API std::string
42prepend_octave_exec_home (const std::string& s);
43
44// These could be defined as pure constants, but we'll use
45// functions to be consistent with the values that require
46// initialization.
47
48extern OCTINTERP_API std::string canonical_host_type ();
49extern OCTINTERP_API std::string release ();
50extern OCTINTERP_API std::string default_pager ();
51
52// These require initialization, so can't be defined as pure
53// constants. We use functions to access these values so that
54// they can't be modified by users.
55
56extern OCTINTERP_API std::string octave_home ();
57extern OCTINTERP_API std::string octave_exec_home ();
58
59extern OCTINTERP_API std::string bin_dir ();
60extern OCTINTERP_API std::string data_dir ();
61extern OCTINTERP_API std::string dataroot_dir ();
62extern OCTINTERP_API std::string include_dir ();
63extern OCTINTERP_API std::string lib_dir ();
64extern OCTINTERP_API std::string libexec_dir ();
65
66extern OCTINTERP_API std::string local_ver_arch_lib_dir ();
67extern OCTINTERP_API std::string local_api_arch_lib_dir ();
68extern OCTINTERP_API std::string local_arch_lib_dir ();
69extern OCTINTERP_API std::string arch_lib_dir ();
70
71extern OCTINTERP_API std::string local_ver_oct_file_dir ();
72extern OCTINTERP_API std::string local_api_oct_file_dir ();
73extern OCTINTERP_API std::string local_oct_file_dir ();
74extern OCTINTERP_API std::string oct_file_dir ();
75
76extern OCTINTERP_API std::string local_ver_fcn_file_dir ();
77extern OCTINTERP_API std::string local_api_fcn_file_dir ();
78extern OCTINTERP_API std::string local_fcn_file_dir ();
79extern OCTINTERP_API std::string fcn_file_dir ();
80
81extern OCTINTERP_API std::string oct_data_dir ();
82extern OCTINTERP_API std::string oct_doc_dir ();
83extern OCTINTERP_API std::string oct_etc_dir ();
84extern OCTINTERP_API std::string oct_fonts_dir ();
85extern OCTINTERP_API std::string oct_include_dir ();
86extern OCTINTERP_API std::string oct_lib_dir ();
87extern OCTINTERP_API std::string oct_locale_dir ();
88extern OCTINTERP_API std::string oct_tests_dir ();
89
90extern OCTINTERP_API std::string local_api_pkg_dir ();
91
92extern OCTINTERP_API std::string info_dir ();
93
94extern OCTINTERP_API std::string man_dir ();
95extern OCTINTERP_API std::string man1_dir ();
96extern OCTINTERP_API std::string man1_ext ();
97
98extern OCTINTERP_API std::string image_dir ();
99
100extern OCTINTERP_API std::string local_startupfile_dir ();
101extern OCTINTERP_API std::string startupfile_dir ();
102
103extern OCTINTERP_API std::string local_site_defaults_file ();
104extern OCTINTERP_API std::string site_defaults_file ();
105
106OCTAVE_END_NAMESPACE(config)
107
108OCTAVE_END_NAMESPACE(octave)
109
110#endif
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::string startupfile_dir()
Definition defaults.cc:469
std::string man_dir()
Definition defaults.cc:425
std::string dataroot_dir()
Definition defaults.cc:200
std::string oct_doc_dir()
Definition defaults.cc:362
std::string default_pager()
Definition defaults.cc:158
std::string local_ver_arch_lib_dir()
Definition defaults.cc:254
std::string local_oct_file_dir()
Definition defaults.cc:299
std::string prepend_octave_home(const std::string &s)
Definition defaults.cc:129
std::string local_startupfile_dir()
Definition defaults.cc:460
std::string octave_exec_home()
Definition defaults.cc:174
std::string local_api_pkg_dir()
Definition defaults.cc:478
std::string canonical_host_type()
Definition defaults.cc:141
std::string oct_fonts_dir()
Definition defaults.cc:380
std::string lib_dir()
Definition defaults.cc:218
std::string local_fcn_file_dir()
Definition defaults.cc:335
std::string include_dir()
Definition defaults.cc:209
std::string local_api_oct_file_dir()
Definition defaults.cc:290
std::string local_arch_lib_dir()
Definition defaults.cc:272
std::string info_dir()
Definition defaults.cc:245
std::string oct_tests_dir()
Definition defaults.cc:416
std::string fcn_file_dir()
Definition defaults.cc:344
std::string site_defaults_file()
Definition defaults.cc:496
std::string bin_dir()
Definition defaults.cc:182
std::string local_api_fcn_file_dir()
Definition defaults.cc:326
std::string local_ver_fcn_file_dir()
Definition defaults.cc:317
std::string man1_dir()
Definition defaults.cc:434
std::string octave_home()
Definition defaults.cc:166
std::string oct_etc_dir()
Definition defaults.cc:371
std::string prepend_octave_exec_home(const std::string &s)
Definition defaults.cc:135
std::string local_ver_oct_file_dir()
Definition defaults.cc:281
std::string local_api_arch_lib_dir()
Definition defaults.cc:263
std::string man1_ext()
Definition defaults.cc:443
std::string libexec_dir()
Definition defaults.cc:227
std::string image_dir()
Definition defaults.cc:451
std::string local_site_defaults_file()
Definition defaults.cc:487
std::string oct_locale_dir()
Definition defaults.cc:407
std::string oct_file_dir()
Definition defaults.cc:308
std::string oct_data_dir()
Definition defaults.cc:353
std::string release()
Definition defaults.cc:150
std::string oct_include_dir()
Definition defaults.cc:389
std::string oct_lib_dir()
Definition defaults.cc:398
std::string data_dir()
Definition defaults.cc:191
std::string arch_lib_dir()
Definition defaults.cc:236