Mercurial > hg > octave-nkf
annotate src/gripes.h @ 8780:ea76466605ba
support native cumsum, gripe on overflow in sum/cumsum
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 17 Feb 2009 14:23:35 +0100 |
parents | 7e0f36dfefbe |
children | eb63fbe60fab |
rev | line source |
---|---|
1 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 2000, 2003, 2005, 2006, |
4 2007 John W. Eaton | |
1 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
1 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
1 | 21 |
22 */ | |
23 | |
383 | 24 #if !defined (octave_gripes_h) |
25 #define octave_gripes_h 1 | |
1 | 26 |
2374 | 27 #include <string> |
28 | |
5275 | 29 #include "oct-types.h" |
30 | |
2086 | 31 class octave_value; |
620 | 32 |
6109 | 33 extern OCTINTERP_API void |
2799 | 34 gripe_not_supported (const char *); |
35 | |
6109 | 36 extern OCTINTERP_API void |
6890 | 37 gripe_not_implemented (const char *); |
38 | |
39 extern OCTINTERP_API void | |
2799 | 40 gripe_string_invalid (void); |
41 | |
6109 | 42 extern OCTINTERP_API void |
2799 | 43 gripe_range_invalid (void); |
44 | |
6109 | 45 extern OCTINTERP_API void |
2799 | 46 gripe_nonconformant (void); |
47 | |
6109 | 48 extern OCTINTERP_API void |
5275 | 49 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, 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, |
83 bool is_error = true); | |
84 | |
6109 | 85 extern OCTINTERP_API void |
3523 | 86 gripe_wrong_type_arg (const char *name, const std::string& s, |
2799 | 87 bool is_error = true); |
88 | |
6109 | 89 extern OCTINTERP_API void |
2799 | 90 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
91 bool is_error = true); | |
92 | |
6109 | 93 extern OCTINTERP_API void |
7352 | 94 gripe_wrong_type_arg (const std::string& name, const octave_value& tc, |
95 bool is_error = true); | |
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, |
108 const std::string& to); | |
4452 | 109 |
6109 | 110 extern OCTINTERP_API void |
7997
2b8952e133c9
implement checked conversions between integers
Jaroslav Hajek <highegg@gmail.com>
parents:
7352
diff
changeset
|
111 gripe_truncated_conversion (const char *srctype, const char *desttype); |
2b8952e133c9
implement checked conversions between integers
Jaroslav Hajek <highegg@gmail.com>
parents:
7352
diff
changeset
|
112 |
2b8952e133c9
implement checked conversions between integers
Jaroslav Hajek <highegg@gmail.com>
parents:
7352
diff
changeset
|
113 extern OCTINTERP_API void |
8039
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
114 gripe_binop_integer_math_truncated (const char *op, const char *type1, const char *type2); |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
115 |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
116 extern OCTINTERP_API void |
8780
ea76466605ba
support native cumsum, gripe on overflow in sum/cumsum
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
117 gripe_native_integer_math_truncated (const char *fcn, const char *type); |
ea76466605ba
support native cumsum, gripe on overflow in sum/cumsum
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
118 |
ea76466605ba
support native cumsum, gripe on overflow in sum/cumsum
Jaroslav Hajek <highegg@gmail.com>
parents:
8579
diff
changeset
|
119 extern OCTINTERP_API void |
8039
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
120 gripe_unop_integer_math_truncated (const char *op, const char *type); |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
121 |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
122 extern OCTINTERP_API void |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
123 gripe_non_integer_conversion (const char *srctype, const char *desttype); |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
124 |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
125 extern OCTINTERP_API void |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
126 gripe_nan_conversion (const char *srctype, const char *desttype); |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
127 |
cd90e2842080
Add additional integer math and conversion warnings, set their default state to be off and add the intwarning function
David Bateman <dbateman@free.fr>
parents:
8011
diff
changeset
|
128 extern OCTINTERP_API void |
2799 | 129 gripe_divide_by_zero (void); |
1 | 130 |
6109 | 131 extern OCTINTERP_API void |
5943 | 132 gripe_logical_conversion (void); |
133 | |
8011
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
134 extern OCTINTERP_API void |
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
135 gripe_library_execution_error (void); |
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
136 |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
137 extern OCTINTERP_API void |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
138 gripe_invalid_inquiry_subscript (void); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
139 |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
140 extern OCTINTERP_API void |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
141 gripe_indexed_cs_list (void); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
142 |
1 | 143 #endif |
144 | |
145 /* | |
146 ;;; Local Variables: *** | |
147 ;;; mode: C++ *** | |
148 ;;; End: *** | |
149 */ |