Mercurial > octave
annotate build-aux/mk-octave-config-h.sh @ 29954:4c88a452519c
rename OCTAVE_USE_DEPRECATED_FUNCTIONS macro and attempt to make it work
For ordinary functions declared in a header file and defined in a
corresponding source file, it should be OK to omit the declaration in
the header file based on the value of
OCTAVE_PROVIDE_DEPRECATED_SYMBOLS. But it is an error to attempt to
define a member function that has not been declared in the class
declaration. So for these, we rename the original function to be
FOO_deprecated and then provide a wrapper function called FOO that is
completely defined in the header file and simply calls the
FOO_deprecated function.
* mk-octave-config-h.sh, oct-conf-post.in.h
(OCTAVE_PROVIDE_DEPRECATED_SYMBOLS): Rename from
OCTAVE_USE_DEPRECATED_FUNCTIONS. Change all uses. For deprecated
member fucntions, use private FOO_deprecated member functions and
conditionally defined inline public wrappers to allow declarations of
deprecated symbosl to be omitted if OCTAVE_PROVIDE_DEPRECATED_SYMBOLS
is not defined.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 14 Aug 2021 11:13:17 -0400 |
parents | e35442c969f5 |
children | 79b5a8901efd |
rev | line source |
---|---|
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 #! /bin/sh |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
3 ######################################################################## |
29357
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
4 ## |
29358
0a5b15007766
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
29357
diff
changeset
|
5 ## Copyright (C) 2016-2021 The Octave Project Developers |
29357
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
6 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
7 ## See the file COPYRIGHT.md in the top-level directory of this |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
8 ## distribution or <https://octave.org/copyright/>. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
9 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
10 ## This file is part of Octave. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
11 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
12 ## Octave is free software: you can redistribute it and/or modify it |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
13 ## under the terms of the GNU General Public License as published by |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
14 ## the Free Software Foundation, either version 3 of the License, or |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
15 ## (at your option) any later version. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
16 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
17 ## Octave is distributed in the hope that it will be useful, but |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
18 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
19 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
20 ## GNU General Public License for more details. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
21 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
22 ## You should have received a copy of the GNU General Public License |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
23 ## along with Octave; see the file COPYING. If not, see |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
24 ## <https://www.gnu.org/licenses/>. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
25 ## |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
26 ######################################################################## |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
21240
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
28 # Generate a header file that provides the public symbols from Octave's |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
29 # autoconf-generated config.h file. See the notes at the top of the |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
30 # generated octave-config.h file for more details. |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
31 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
32 SED=${SED:-sed} |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
33 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 if [ $# -ne 1 ]; then |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 echo "usage: mk-octave-config-h.sh CONFIG-FILE" 1>&2 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 exit 1 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 config_h_file=$1 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 cat << EOF |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
42 // DO NOT EDIT! Generated by mk-octave-config-h.sh. |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
44 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
45 // |
29358
0a5b15007766
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
29357
diff
changeset
|
46 // Copyright (C) 2016-2021 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
47 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
48 // 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:
27919
diff
changeset
|
49 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
50 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
51 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
52 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
53 // 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:
27919
diff
changeset
|
54 // 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:
27919
diff
changeset
|
55 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
56 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
57 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
58 // 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:
27919
diff
changeset
|
59 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
60 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
61 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
62 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
63 // 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:
27919
diff
changeset
|
64 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
65 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
66 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
67 //////////////////////////////////////////////////////////////////////// |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
68 |
21240
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
69 /* |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
70 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
71 All Octave source files should begin with |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
72 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
73 #if defined (HAVE_CONFIG_H) |
21301
40de9f8f23a6
Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents:
21287
diff
changeset
|
74 # include "config.h" |
21240
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
75 #endif |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
76 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
77 All public Octave header files should have the form |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
78 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
79 #if ! defined (INCLUSION_GUARD_SYMBOL) |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
80 #define INCLUSION_GUARD_SYMBOL 1 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
81 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
82 #include "octave-config.h" |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
83 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
84 // Contents of header file. |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
85 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
86 #endif |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
87 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
88 In Octave source files, INCLUSION_GUARD_SYMBOL should have the form |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
89 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
90 octave_NAME_h |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
91 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
92 with NAME formed from the header file name with '-' replaced by '_'. |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
93 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
94 It is safe to include octave-config.h unconditionally since it will |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
95 expand to an empty file if it is included after Octave's |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
96 autoconf-generated config.h file. |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
97 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
98 Users of Octave's libraries should not need to include octave-config.h |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
99 since all of Octave's header files already include it. |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
100 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
101 */ |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
102 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
103 #if ! defined (octave_octave_config_h) |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 #define octave_octave_config_h 1 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 |
21240
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
106 #if ! defined (OCTAVE_AUTOCONFIG_H_INCLUDED) |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
107 |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
108 # if defined (__cplusplus) |
27850
8384125d6f5f
Include header that defines the macros with format constants.
Markus Mützel <markus.muetzel@gmx.de>
parents:
27737
diff
changeset
|
109 # include <cinttypes> |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
110 # else |
27850
8384125d6f5f
Include header that defines the macros with format constants.
Markus Mützel <markus.muetzel@gmx.de>
parents:
27737
diff
changeset
|
111 # include <inttypes.h> |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
112 # endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 |
29953
e35442c969f5
provide macros for beginning and ending octave namespace
John W. Eaton <jwe@octave.org>
parents:
29688
diff
changeset
|
114 # define OCTAVE_NAMESPACE_BEGIN namespace octave { |
e35442c969f5
provide macros for beginning and ending octave namespace
John W. Eaton <jwe@octave.org>
parents:
29688
diff
changeset
|
115 # define OCTAVE_NAMESPACE_END } |
e35442c969f5
provide macros for beginning and ending octave namespace
John W. Eaton <jwe@octave.org>
parents:
29688
diff
changeset
|
116 |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
117 # if defined (__GNUC__) |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
118 # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) |
23615
be7b884ac589
use version number in OCTAVE_DEPRECATED macro
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
119 # define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__ ("[" #ver "]: " msg))) |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
120 # else |
23615
be7b884ac589
use version number in OCTAVE_DEPRECATED macro
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
121 # define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__)) |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
122 # endif |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
123 # define OCTAVE_NORETURN __attribute__ ((__noreturn__)) |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
124 # define OCTAVE_UNUSED __attribute__ ((__unused__)) |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
125 |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
126 # define HAVE_OCTAVE_DEPRECATED_ATTR 1 |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
127 # define HAVE_OCTAVE_NORETURN_ATTR 1 |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
128 # define HAVE_OCTAVE_UNUSED_ATTR 1 |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
129 # else |
23615
be7b884ac589
use version number in OCTAVE_DEPRECATED macro
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
130 # define OCTAVE_DEPRECATED(ver, msg) |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
131 # define OCTAVE_NORETURN |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
132 # define OCTAVE_UNUSED |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
133 |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
134 /* # undef HAVE_OCTAVE_DEPRECATED_ATTR */ |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
135 /* # undef HAVE_OCTAVE_NORETURN_ATTR */ |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
136 /* # undef HAVE_OCTAVE_UNUSED_ATTR */ |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
137 # endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
138 |
26164
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
139 # if defined (__MINGW32__) |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
140 /* MinGW requires special handling due to different format specifiers |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
141 * on different platforms. The macro __MINGW_PRINTF_FORMAT maps to |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
142 * either gnu_printf or ms_printf depending on where we are compiling |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
143 * to avoid warnings on format specifiers that are legal. |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
144 * See: https://bugzilla.mozilla.org/show_bug.cgi?id=1331349 */ |
27737
527e25f7ee38
Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27486
diff
changeset
|
145 # if defined (__cplusplus) |
527e25f7ee38
Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27486
diff
changeset
|
146 # include <cstdio> |
527e25f7ee38
Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27486
diff
changeset
|
147 # else |
527e25f7ee38
Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27486
diff
changeset
|
148 # include <stdio.h> |
527e25f7ee38
Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27486
diff
changeset
|
149 # endif |
527e25f7ee38
Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27486
diff
changeset
|
150 |
26164
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
151 # define OCTAVE_FORMAT_PRINTF(stringIndex, firstToCheck) \ |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
152 __attribute__ ((format (__MINGW_PRINTF_FORMAT, stringIndex, firstToCheck))) |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
153 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
154 # define HAVE_OCTAVE_FORMAT_PRINTF_ATTR 1 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
155 # elif defined (__GNUC__) |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
156 /* The following attributes are used with gcc and clang compilers. */ |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
157 # define OCTAVE_FORMAT_PRINTF(index, first) \ |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
158 __attribute__ ((__format__(printf, index, first))) |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
159 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
160 # define HAVE_OCTAVE_FORMAT_PRINTF_ATTR 1 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
161 # else |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
162 # define OCTAVE_FORMAT_PRINTF(index, first) |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
163 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
164 /* # undef HAVE_OCTAVE_FORMAT_PRINTF_ATTR */ |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
165 # endif |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
166 |
23826
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
167 # if ! defined (OCTAVE_FALLTHROUGH) |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
168 # if defined (__cplusplus) && __cplusplus > 201402L |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
169 # define OCTAVE_FALLTHROUGH [[fallthrough]] |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
170 # elif defined (__GNUC__) && __GNUC__ < 7 |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
171 # define OCTAVE_FALLTHROUGH ((void) 0) |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
172 # else |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
173 # define OCTAVE_FALLTHROUGH __attribute__ ((__fallthrough__)) |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
174 # endif |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
175 # endif |
d69021d58a61
avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents:
23615
diff
changeset
|
176 |
29954
4c88a452519c
rename OCTAVE_USE_DEPRECATED_FUNCTIONS macro and attempt to make it work
John W. Eaton <jwe@octave.org>
parents:
29953
diff
changeset
|
177 # define OCTAVE_PROVIDE_DEPRECATED_SYMBOLS 1 |
21726
f05a00e611ff
use namespace for glob and fnmatch wrapper functions
John W. Eaton <jwe@octave.org>
parents:
21691
diff
changeset
|
178 |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
179 # if defined (__cplusplus) |
21691
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21357
diff
changeset
|
180 template <typename T> |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21357
diff
changeset
|
181 static inline void |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21357
diff
changeset
|
182 octave_unused_parameter (const T&) |
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21357
diff
changeset
|
183 { } |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
184 # else |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
185 # define octave_unused_parameter(param) (void) param; |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
186 # endif |
21691
263d18409fdf
Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents:
21357
diff
changeset
|
187 |
29313
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
188 # if defined (OCTAVE_ENABLE_LIB_VISIBILITY_FLAGS) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
189 # if defined (_WIN32) || defined (__CYGWIN__) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
190 # if defined (__GNUC__) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
191 /* GCC */ |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
192 # define OCTAVE_EXPORT __attribute__ ((dllexport)) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
193 # define OCTAVE_IMPORT __attribute__ ((dllimport)) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
194 # else |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
195 /* MSVC */ |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
196 # define OCTAVE_EXPORT __declspec(dllexport) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
197 # define OCTAVE_IMPORT __declspec(dllimport) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
198 # endif |
29239
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29238
diff
changeset
|
199 # else |
29313
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
200 /* All other platforms. */ |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
201 # define OCTAVE_EXPORT __attribute__ ((visibility ("default"))) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
202 # define OCTAVE_IMPORT |
29239
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29238
diff
changeset
|
203 # endif |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
204 # else |
29313
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
205 # define OCTAVE_EXPORT |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29239
diff
changeset
|
206 # define OCTAVE_IMPORT |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
207 # endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
208 |
29224
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
209 /* API macro for liboctave */ |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
210 #if defined (OCTAVE_DLL) |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
211 # define OCTAVE_API OCTAVE_EXPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
212 #else |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
213 # define OCTAVE_API OCTAVE_IMPORT |
29224
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
214 #endif |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
215 |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
216 /* API macro for libinterp */ |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
217 #if defined (OCTINTERP_DLL) |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
218 # define OCTINTERP_API OCTAVE_EXPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
219 #else |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
220 # define OCTINTERP_API OCTAVE_IMPORT |
29224
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
221 #endif |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
222 |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
223 /* API macro for the Array class in liboctave and liboctinterp */ |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
224 #if (defined (OCTAVE_DLL) || defined (OCTINTERP_DLL)) |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
225 # define OCTARRAY_API OCTAVE_EXPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
226 #else |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
227 # define OCTARRAY_API OCTAVE_IMPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
228 #endif |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
229 |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
230 /* API macro for libinterp/graphics */ |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
231 #if defined (OCTGRAPHICS_DLL) |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
232 # define OCTGRAPHICS_API OCTAVE_EXPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
233 #else |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
234 # define OCTGRAPHICS_API OCTAVE_IMPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
235 #endif |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
236 |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
237 /* API macro for libgui */ |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
238 #if defined (OCTGUI_DLL) |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
239 # define OCTGUI_API OCTAVE_EXPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
240 #else |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
241 # define OCTGUI_API OCTAVE_IMPORT |
cc4a4df4e32f
Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27923
diff
changeset
|
242 #endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
243 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
244 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
245 octave_idx_type="`$SED -n 's/#define OCTAVE_IDX_TYPE \([_a-zA-Z][_a-zA-Z0-9]*\)/\1/p' $config_h_file`" |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
246 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
247 if test -z "$octave_idx_type"; then |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
248 echo "mk-octave-config-h.sh: failed to find OCTAVE_IDX_TYPE in $config_h_file" 1>&2 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
249 exit 1 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
250 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
251 |
22867
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
252 octave_f77_int_type="`$SED -n 's/#define OCTAVE_F77_INT_TYPE \([_a-zA-Z][_a-zA-Z0-9]*\)/\1/p' $config_h_file`" |
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
253 |
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
254 if test -z "$octave_f77_int_type"; then |
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
255 echo "mk-octave-config-h.sh: failed to find OCTAVE_F77_INT_TYPE in $config_h_file" 1>&2 |
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
256 exit 1 |
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
257 fi |
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
258 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
259 cat << EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
260 |
21239
ffc9806bb300
mk-octave-config-h.sh: Correct typdef for octave_idx_type.
John W. Eaton <jwe@octave.org>
parents:
21229
diff
changeset
|
261 typedef $octave_idx_type octave_idx_type; |
22867
78f1d359dd8f
define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents:
22755
diff
changeset
|
262 typedef $octave_f77_int_type octave_f77_int_type; |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
263 |
22990
f71191aea679
provide macro declaring existence of f77 integer type
John W. Eaton <jwe@octave.org>
parents:
22867
diff
changeset
|
264 # define OCTAVE_HAVE_F77_INT_TYPE 1 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
265 |
24538
2b273df71aa0
allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents:
24534
diff
changeset
|
266 |
2b273df71aa0
allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents:
24534
diff
changeset
|
267 # if defined (__cplusplus) && ! defined (OCTAVE_THREAD_LOCAL) |
2b273df71aa0
allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents:
24534
diff
changeset
|
268 # define OCTAVE_THREAD_LOCAL |
2b273df71aa0
allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents:
24534
diff
changeset
|
269 # endif |
2b273df71aa0
allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents:
24534
diff
changeset
|
270 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
271 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
272 |
21277
1bca6c72d2b1
maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
273 if grep "#define OCTAVE_ENABLE_FLOAT_TRUNCATE 1" $config_h_file > /dev/null; then |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
274 echo "# define OCTAVE_FLOAT_TRUNCATE volatile" |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
275 else |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
276 echo "# define OCTAVE_FLOAT_TRUNCATE" |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
277 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
278 |
22144
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
279 echo "" |
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
280 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
281 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_64.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
282 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_BOUNDS_CHECK.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
283 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_OPENMP.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
284 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_LONG_LONG_INT.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
285 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
286 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_OVERLOAD_CHAR_INT8_TYPES.*$\)/# \1/p' $config_h_file |
23014
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
22990
diff
changeset
|
287 $SED -n 's/#\(\(undef\|define\) OCTAVE_SIZEOF_F77_INT_TYPE.*$\)/# \1/p' $config_h_file |
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
22990
diff
changeset
|
288 $SED -n 's/#\(\(undef\|define\) OCTAVE_SIZEOF_IDX_TYPE.*$\)/# \1/p' $config_h_file |
29688
b36e83cdbf05
ensure idx_vector(int) constructor is defined (bug #60531)
John W. Eaton <jwe@octave.org>
parents:
29359
diff
changeset
|
289 $SED -n 's/#\(\(undef\|define\) OCTAVE_SIZEOF_INT.*$\)/# \1/p' $config_h_file |
21302
8376de2eaf00
define OCTAVE_HAVE_FAST_INT_OPS in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21301
diff
changeset
|
290 |
26164
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
291 cat << EOF |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
292 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
293 # if defined (OCTAVE_ENABLE_64) |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
294 # define OCTAVE_IDX_TYPE_FORMAT PRId64 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
295 # else |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
296 # define OCTAVE_IDX_TYPE_FORMAT PRId32 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
297 # endif |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
298 |
7f6a50f73625
Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26147
diff
changeset
|
299 EOF |
22144
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
300 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
301 $SED -n 's/#\(\(undef\|define\) gid_t.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
302 $SED -n 's/#\(\(undef\|define\) uid_t.*$\)/# \1/p' $config_h_file |
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
303 $SED -n 's/#\(\(undef\|define\) nlink_t.*$\)/# \1/p' $config_h_file |
22000
f471f513ffd0
also define gid_t, uid_t, and nlink_t in octave-config.h (bug #48332)
John W. Eaton <jwe@octave.org>
parents:
21850
diff
changeset
|
304 |
21277
1bca6c72d2b1
maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
305 if grep "#undef HAVE_DEV_T" $config_h_file > /dev/null; then |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
306 cat << EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
307 typedef short dev_t; |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
308 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
309 else |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
310 cat << EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
311 /* typedef short dev_t; */ |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
312 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
313 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
314 |
21277
1bca6c72d2b1
maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
315 if grep "#undef HAVE_INO_T" $config_h_file > /dev/null; then |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
316 cat << EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
317 typedef unsigned long ino_t; |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
318 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
319 else |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
320 cat << EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
321 /* typedef unsigned long ino_t; */ |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
322 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
323 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
324 |
22144
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
325 echo "" |
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
326 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
327 have_roundl=no |
21277
1bca6c72d2b1
maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents:
21240
diff
changeset
|
328 if grep "#define HAVE_ROUNDL" $config_h_file > /dev/null; then |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
329 have_roundl=yes |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
330 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
331 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
332 sizeof_long_double="`$SED -n 's/#define SIZEOF_LONG_DOUBLE \([0-9]*\)/\1/p' $config_h_file`" |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
333 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
334 if test -z "$sizeof_long_double"; then |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
335 echo "mk-octave-config-h.sh: failed to find SIZEOF_LONG_DOUBLE in $config_h_file" 1>&2 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
336 exit 1 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
337 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
338 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
339 if test $sizeof_long_double -ge 10 && test $have_roundl = yes; then |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
340 echo "# define OCTAVE_INT_USE_LONG_DOUBLE 1" |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
341 if test $sizeof_long_double -lt 16; then |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
342 cat << EOF |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
343 # if (defined (__i386__) || defined (__x86_64__)) && defined (__GNUC__) |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
344 # define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1 |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
345 # endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
346 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
347 else |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
348 cat << EOF |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
349 /* # undef OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED */ |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
350 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
351 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
352 else |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
353 cat << EOF |
21850
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
354 /* # undef OCTAVE_INT_USE_LONG_DOUBLE */ |
0507f0d2135d
indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
355 /* # undef OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED */ |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
356 EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
357 fi |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
358 |
22144
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
359 echo "" |
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
360 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
361 $SED -n 's/#\(\(undef\|define\) F77_USES_.*$\)/# \1/p' $config_h_file |
22144
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
362 |
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
363 echo "" |
469a4142c4cf
* mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents:
22143
diff
changeset
|
364 |
22468
6f5cde55e225
build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents:
22144
diff
changeset
|
365 $SED -n 's/#\(\(undef\|define\) F77_FUNC.*$\)/# \1/p' $config_h_file |
21357
d00efda9bb92
Insert F77_FUNC defines into octave-config.h (Bug #47250)
John D
parents:
21354
diff
changeset
|
366 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
367 cat << EOF |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
368 |
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
369 #endif |
21240
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
370 |
7af5ca01ecac
allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents:
21239
diff
changeset
|
371 #endif |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
372 EOF |