Mercurial > jwe > octave
annotate liboctave/version.in.h @ 31110:670a0d878af1
eliminate WHO arguments from interpreter-private functions
* interpreter-private.h, inpterpreter-private.cc (__get_interpreter__,
__get_dynamic_loader__, __get_error_system__, __get_gh_manager__,
__get_help_system__, __get_input_system__, __get_load_path__,
__get_load_save_system__, __get_event_manager__,
__get_output_system__, __get_type_info__, __get_symbol_table__,
__get_current_scope__, __require_current_scope__, __get_evaluator__,
__get_bp_table__, __get_child_list__, __get_cdef_manager__,
__get_display_info__, __get_gtk_manager__): Eliminate WHO argument.
Previously, it was never displayed by __get_interpreter__. And, as
pointed out by Petter Tomner in patch #10216, passing a std::string
object could have performance issues.
(__get_interpreter__): Eliminate useless call to error. Display
message to std::cerr then abort.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Jun 2022 12:48:59 -0400 |
parents | 796f54d4ddbf |
children |
rev | line source |
---|---|
15100
8523df595d42
maint: Add DO NOT EDIT messages to build system for src/*.in.h.
Rik <rik@octave.org>
parents:
15089
diff
changeset
|
1 // %NO_EDIT_WARNING% |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
27928
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
3 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
4 // |
30569
796f54d4ddbf
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
29364
diff
changeset
|
5 // Copyright (C) 1992-2022 The Octave Project Developers |
27928
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
6 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
7 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
8 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
10 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
11 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
12 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
13 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
14 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
15 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
16 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
17 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
18 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
20 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
21 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
22 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
23 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
24 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
25 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
26 //////////////////////////////////////////////////////////////////////// |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
28 #if ! defined (octave_version_h) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 #define octave_version_h 1 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21017
diff
changeset
|
31 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21017
diff
changeset
|
32 |
9906 | 33 #define OCTAVE_VERSION %OCTAVE_VERSION% |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 |
18229
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
35 #define OCTAVE_MAJOR_VERSION %OCTAVE_MAJOR_VERSION% |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
36 |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
37 #define OCTAVE_MINOR_VERSION %OCTAVE_MINOR_VERSION% |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
38 |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
39 #define OCTAVE_PATCH_VERSION %OCTAVE_PATCH_VERSION% |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
40 |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
41 // The "API version" is used as a way of checking that interfaces in the |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
42 // liboctave and libinterp libraries haven't changed in a backwardly |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
43 // incompatible way when loading .oct files. A better way to do that is |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
44 // with library versioning, but not all systems support that. |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
45 // NOTE: This macro will be removed in a future version of Octave. If |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
46 // you insist on checking for features using a version number, use the |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
47 // OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, and |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
17956
diff
changeset
|
48 // OCTAVE_PATCH_VERSION macros instead. |
9906 | 49 #define OCTAVE_API_VERSION %OCTAVE_API_VERSION% |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 |
9906 | 51 #define OCTAVE_RELEASE_DATE %OCTAVE_RELEASE_DATE% |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 |
25397
2cf750f5cb7d
make version info accessible in liboctave
John W. Eaton <jwe@octave.org>
parents:
25054
diff
changeset
|
53 #define OCTAVE_CANONICAL_HOST_TYPE %OCTAVE_CANONICAL_HOST_TYPE% |
2cf750f5cb7d
make version info accessible in liboctave
John W. Eaton <jwe@octave.org>
parents:
25054
diff
changeset
|
54 |
9906 | 55 #define OCTAVE_COPYRIGHT %OCTAVE_COPYRIGHT% |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
56 |
17685
3d862202c4f6
Ensure <string> is included when incuding version.h
Philip Nienhuis <prnienhuis@users.sf.net>
parents:
17510
diff
changeset
|
57 #include <string> |
3d862202c4f6
Ensure <string> is included when incuding version.h
Philip Nienhuis <prnienhuis@users.sf.net>
parents:
17510
diff
changeset
|
58 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
59 extern OCTAVE_API std::string octave_www_statement (bool html = false); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
60 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
61 extern OCTAVE_API std::string octave_contrib_statement (bool html = false); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
62 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
63 extern OCTAVE_API std::string octave_bugs_statement (bool html = false); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
64 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
65 extern OCTAVE_API std::string octave_name_version_and_copyright (void); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
67 extern OCTAVE_API std::string |
17510
7542f4496974
eliminate some macros in version.h
John W. Eaton <jwe@octave.org>
parents:
15512
diff
changeset
|
68 octave_name_version_copyright_copying_and_warranty |
21017
93748bcaec17
maint: Replace emtpy 'std::string ()' calls with "".
Rik <rik@octave.org>
parents:
20791
diff
changeset
|
69 (bool html = false, const std::string& extra_info = ""); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
70 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
71 extern OCTAVE_API std::string |
17510
7542f4496974
eliminate some macros in version.h
John W. Eaton <jwe@octave.org>
parents:
15512
diff
changeset
|
72 octave_name_version_copyright_copying_warranty_and_bugs |
21017
93748bcaec17
maint: Replace emtpy 'std::string ()' calls with "".
Rik <rik@octave.org>
parents:
20791
diff
changeset
|
73 (bool html = false, const std::string& extra_info = ""); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
74 |
29237
7bd81f266c21
Set API tags in remaining file in liboctave (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27928
diff
changeset
|
75 extern OCTAVE_API std::string octave_startup_message (bool html = false); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
76 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
77 #endif |