Mercurial > octave-nkf
annotate libinterp/corefcn/gripes.h @ 20654:b65888ec820e draft default tip gccjit
dmalcom gcc jit import
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Fri, 27 Feb 2015 16:59:36 +0100 |
parents | b70cc4bd8109 |
children |
rev | line source |
---|---|
1 | 1 /* |
2 | |
19731
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19064
diff
changeset
|
3 Copyright (C) 1993-2015 John W. Eaton |
1 | 4 |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
1 | 11 |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
1 | 20 |
21 */ | |
22 | |
383 | 23 #if !defined (octave_gripes_h) |
24 #define octave_gripes_h 1 | |
1 | 25 |
2374 | 26 #include <string> |
27 | |
11130
7c573eb981eb
consistently give error for operator not applied to NaN values
John W. Eaton <jwe@octave.org>
parents:
10405
diff
changeset
|
28 #include "lo-array-gripes.h" |
7c573eb981eb
consistently give error for operator not applied to NaN values
John W. Eaton <jwe@octave.org>
parents:
10405
diff
changeset
|
29 |
2086 | 30 class octave_value; |
620 | 31 |
6109 | 32 extern OCTINTERP_API void |
2799 | 33 gripe_not_supported (const char *); |
34 | |
6109 | 35 extern OCTINTERP_API void |
6890 | 36 gripe_not_implemented (const char *); |
37 | |
38 extern OCTINTERP_API void | |
2799 | 39 gripe_string_invalid (void); |
40 | |
6109 | 41 extern OCTINTERP_API void |
2799 | 42 gripe_range_invalid (void); |
43 | |
6109 | 44 extern OCTINTERP_API void |
2799 | 45 gripe_nonconformant (void); |
46 | |
6109 | 47 extern OCTINTERP_API void |
17787
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
48 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, |
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
49 octave_idx_type r2, octave_idx_type c2); |
2799 | 50 |
6109 | 51 extern OCTINTERP_API void |
2799 | 52 gripe_empty_arg (const char *name, bool is_error); |
53 | |
6109 | 54 extern OCTINTERP_API void |
2799 | 55 gripe_square_matrix_required (const char *name); |
56 | |
6109 | 57 extern OCTINTERP_API void |
2799 | 58 gripe_user_supplied_eval (const char *name); |
59 | |
6109 | 60 extern OCTINTERP_API void |
2799 | 61 gripe_user_returned_invalid (const char *name); |
62 | |
6109 | 63 extern OCTINTERP_API void |
3523 | 64 gripe_invalid_conversion (const std::string& from, const std::string& to); |
2799 | 65 |
6109 | 66 extern OCTINTERP_API void |
2799 | 67 gripe_invalid_value_specified (const char *name); |
68 | |
6109 | 69 extern OCTINTERP_API void |
2799 | 70 gripe_2_or_3_dim_plot (void); |
71 | |
6109 | 72 extern OCTINTERP_API void |
2799 | 73 gripe_unrecognized_float_fmt (void); |
74 | |
6109 | 75 extern OCTINTERP_API void |
2799 | 76 gripe_unrecognized_data_fmt (const char *warn_for); |
77 | |
6109 | 78 extern OCTINTERP_API void |
2799 | 79 gripe_data_conversion (const char *from, const char *to); |
80 | |
6109 | 81 extern OCTINTERP_API void |
5602 | 82 gripe_wrong_type_arg (const char *name, const char *s, |
10313 | 83 bool is_error = true); |
5602 | 84 |
6109 | 85 extern OCTINTERP_API void |
3523 | 86 gripe_wrong_type_arg (const char *name, const std::string& s, |
10313 | 87 bool is_error = true); |
2799 | 88 |
6109 | 89 extern OCTINTERP_API void |
2799 | 90 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
10313 | 91 bool is_error = true); |
2799 | 92 |
6109 | 93 extern OCTINTERP_API void |
7352 | 94 gripe_wrong_type_arg (const std::string& name, const octave_value& tc, |
10313 | 95 bool is_error = true); |
7352 | 96 |
97 extern OCTINTERP_API void | |
2799 | 98 gripe_wrong_type_arg_for_unary_op (const octave_value& op); |
99 | |
6109 | 100 extern OCTINTERP_API void |
2799 | 101 gripe_wrong_type_arg_for_binary_op (const octave_value& op); |
102 | |
6109 | 103 extern OCTINTERP_API void |
5781 | 104 gripe_implicit_conversion (const char *id, const char *from, const char *to); |
2799 | 105 |
6109 | 106 extern OCTINTERP_API void |
5781 | 107 gripe_implicit_conversion (const std::string& id, const std::string& from, |
10313 | 108 const std::string& to); |
4452 | 109 |
20654 | 110 extern "C" { |
6109 | 111 extern OCTINTERP_API void |
2799 | 112 gripe_divide_by_zero (void); |
20654 | 113 } |
1 | 114 |
6109 | 115 extern OCTINTERP_API void |
5943 | 116 gripe_logical_conversion (void); |
117 | |
8011
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
118 extern OCTINTERP_API void |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
119 gripe_invalid_inquiry_subscript (void); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
120 |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
121 extern OCTINTERP_API void |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
122 gripe_indexed_cs_list (void); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
123 |
9588
319e2ab9b8ae
warn about the complex comparison ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
124 extern OCTINTERP_API void |
10030
83bb2a78c07d
improve simple assignments error checks and messages
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
125 gripe_nonbraced_cs_list_assignment (void); |
83bb2a78c07d
improve simple assignments error checks and messages
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
126 |
83bb2a78c07d
improve simple assignments error checks and messages
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
127 extern OCTINTERP_API void |
9588
319e2ab9b8ae
warn about the complex comparison ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
128 gripe_warn_complex_cmp (void); |
319e2ab9b8ae
warn about the complex comparison ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
129 |
16899
55caca526827
New function to error due to disabled feature during build.
Carnë Draug <carandraug@octave.org>
parents:
16892
diff
changeset
|
130 extern OCTINTERP_API void |
55caca526827
New function to error due to disabled feature during build.
Carnë Draug <carandraug@octave.org>
parents:
16892
diff
changeset
|
131 gripe_disabled_feature (const std::string& func, const std::string& feature, |
55caca526827
New function to error due to disabled feature during build.
Carnë Draug <carandraug@octave.org>
parents:
16892
diff
changeset
|
132 const std::string& pkg="Octave"); |
19064
9ef10e6a5987
make "file found in path" warnings consistent
John W. Eaton <jwe@octave.org>
parents:
17787
diff
changeset
|
133 |
9ef10e6a5987
make "file found in path" warnings consistent
John W. Eaton <jwe@octave.org>
parents:
17787
diff
changeset
|
134 extern OCTINTERP_API void |
9ef10e6a5987
make "file found in path" warnings consistent
John W. Eaton <jwe@octave.org>
parents:
17787
diff
changeset
|
135 gripe_data_file_in_path (const std::string& fcn, const std::string& file); |
9ef10e6a5987
make "file found in path" warnings consistent
John W. Eaton <jwe@octave.org>
parents:
17787
diff
changeset
|
136 |
1 | 137 #endif |