Mercurial > jwe > octave
comparison libinterp/corefcn/gripes.h @ 21134:2e5c1f766ac9
provide replacement hints for deprecated C++ functions
* oct-conf-post.in.h (OCTAVE_DEPRECATED): Accept message argument.
* error.h, errwarn.h, gripes.h, symtab.h, variables.h,
* ov-base-sparse.h, ov-base.h, ov.h, Array.h, DiagArray2.h,
* PermMatrix.h, Range.h, Sparse.h, dSparse.h, lo-array-errwarn.h,
* lo-array-gripes.h, unwind-prot.h: Change all uses of
OCTAVE_DEPRECATED.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Jan 2016 12:15:12 -0500 |
parents | 2e8aea678f2a |
children | 1473547f50f5 |
comparison
equal
deleted
inserted
replaced
21133:31674b9d202b | 21134:2e5c1f766ac9 |
---|---|
33 | 33 |
34 //////////////////////////////////////////////////////////////////////////////// | 34 //////////////////////////////////////////////////////////////////////////////// |
35 // Alphabetized list of gripes. | 35 // Alphabetized list of gripes. |
36 //////////////////////////////////////////////////////////////////////////////// | 36 //////////////////////////////////////////////////////////////////////////////// |
37 | 37 |
38 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 38 OCTAVE_DEPRECATED ("use 'err_2_or_3_dim_plot' instead") |
39 void gripe_2_or_3_dim_plot (void); | 39 OCTAVE_NORETURN OCTINTERP_API extern void |
40 | 40 gripe_2_or_3_dim_plot (void); |
41 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 41 |
42 void gripe_data_conversion (const char *from, const char *to); | 42 OCTAVE_DEPRECATED ("use 'err_data_conversion' instead") |
43 | 43 OCTAVE_NORETURN OCTINTERP_API extern void |
44 OCTAVE_DEPRECATED OCTINTERP_API extern | 44 gripe_data_conversion (const char *from, const char *to); |
45 void gripe_data_file_in_path (const std::string& fcn, const std::string& file); | 45 |
46 | 46 OCTAVE_DEPRECATED ("use 'warn_data_file_in_path' instead") |
47 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 47 OCTINTERP_API extern void |
48 void gripe_disabled_feature (const std::string& fcn, | 48 gripe_data_file_in_path (const std::string& fcn, const std::string& file); |
49 const std::string& feature, | 49 |
50 const std::string& pkg="Octave"); | 50 OCTAVE_DEPRECATED ("use 'err_disabled_feature' or 'warn_disabled_feature' instead") |
51 | 51 OCTAVE_NORETURN OCTINTERP_API extern void |
52 OCTAVE_DEPRECATED OCTINTERP_API extern | 52 gripe_disabled_feature (const std::string& fcn, |
53 void gripe_divide_by_zero (void); | 53 const std::string& feature, |
54 | 54 const std::string& pkg="Octave"); |
55 OCTAVE_DEPRECATED OCTINTERP_API extern | 55 |
56 void gripe_empty_arg (const char *name, bool is_error); | 56 OCTAVE_DEPRECATED ("use 'warn_divide_by_zero' instead") |
57 | 57 OCTINTERP_API extern void |
58 OCTAVE_DEPRECATED OCTINTERP_API extern | 58 gripe_divide_by_zero (void); |
59 void gripe_implicit_conversion (const char *id, const char *from, const char *to); | 59 |
60 | 60 OCTAVE_DEPRECATED ("use 'warn_empty_arg' instead") |
61 OCTAVE_DEPRECATED OCTINTERP_API extern | 61 OCTINTERP_API extern void |
62 void gripe_implicit_conversion (const std::string& id, const std::string& from, | 62 gripe_empty_arg (const char *name, bool is_error); |
63 const std::string& to); | 63 |
64 | 64 OCTAVE_DEPRECATED ("use 'warn_implicit_conversion' instead") |
65 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 65 OCTINTERP_API extern void |
66 void gripe_indexed_cs_list (void); | 66 gripe_implicit_conversion (const char *id, const char *from, const char *to); |
67 | 67 |
68 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 68 OCTAVE_DEPRECATED ("use 'warn_implicit_conversion' instead") |
69 void gripe_invalid_conversion (const std::string& from, const std::string& to); | 69 OCTINTERP_API extern void |
70 | 70 gripe_implicit_conversion (const std::string& id, const std::string& from, |
71 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 71 const std::string& to); |
72 void gripe_invalid_inquiry_subscript (void); | 72 |
73 | 73 OCTAVE_DEPRECATED ("use 'err_indexed_cs_list' instead") |
74 OCTAVE_DEPRECATED OCTINTERP_API extern | 74 OCTAVE_NORETURN OCTINTERP_API extern void |
75 void gripe_invalid_value_specified (const char *name); | 75 gripe_indexed_cs_list (void); |
76 | 76 |
77 OCTAVE_DEPRECATED OCTINTERP_API extern | 77 OCTAVE_DEPRECATED ("use 'err_invalid_conversion' instead") |
78 void gripe_logical_conversion (void); | 78 OCTAVE_NORETURN OCTINTERP_API extern void |
79 | 79 gripe_invalid_conversion (const std::string& from, const std::string& to); |
80 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 80 |
81 void gripe_nonbraced_cs_list_assignment (void); | 81 OCTAVE_DEPRECATED ("use 'err_invalid_inquiry_subscript' instead") |
82 | 82 OCTAVE_NORETURN OCTINTERP_API extern void |
83 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 83 gripe_invalid_inquiry_subscript (void); |
84 void gripe_nonconformant (void); | 84 |
85 | 85 OCTAVE_DEPRECATED ("use 'warn_invalid_value_specified' instead") |
86 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 86 OCTINTERP_API extern void |
87 void gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, | 87 gripe_invalid_value_specified (const char *name); |
88 octave_idx_type r2, octave_idx_type c2); | 88 |
89 | 89 OCTAVE_DEPRECATED ("use 'warn_logical_conversion' instead") |
90 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 90 OCTINTERP_API extern void |
91 void gripe_not_implemented (const char *); | 91 gripe_logical_conversion (void); |
92 | |
93 OCTAVE_DEPRECATED ("use 'err_nonbraced_cs_list_assignment' instead") | |
94 OCTAVE_NORETURN OCTINTERP_API extern void | |
95 gripe_nonbraced_cs_list_assignment (void); | |
96 | |
97 OCTAVE_DEPRECATED ("use 'err_nonconformant' instead") | |
98 OCTAVE_NORETURN OCTINTERP_API extern void | |
99 gripe_nonconformant (void); | |
100 | |
101 OCTAVE_DEPRECATED ("use 'err_nonconformant' instead") | |
102 OCTAVE_NORETURN OCTINTERP_API extern void | |
103 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, | |
104 octave_idx_type r2, octave_idx_type c2); | |
105 | |
106 OCTAVE_DEPRECATED ("use 'err_not_implemented' instead") | |
107 OCTAVE_NORETURN OCTINTERP_API extern void | |
108 gripe_not_implemented (const char *); | |
92 | 109 |
93 // FIXME: Deprecated in 4.2, remove in 4.6 | 110 // FIXME: Deprecated in 4.2, remove in 4.6 |
94 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 111 OCTAVE_DEPRECATED ("use 'err_disabled_feature' or 'warn_disabled_feature' instead") |
95 void gripe_not_supported (const char *); | 112 OCTAVE_NORETURN OCTINTERP_API extern void |
96 | 113 gripe_not_supported (const char *); |
97 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 114 |
98 void gripe_range_invalid (void); | 115 OCTAVE_DEPRECATED ("use 'err_range_invalid' instead") |
99 | 116 OCTAVE_NORETURN OCTINTERP_API extern void |
100 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 117 gripe_range_invalid (void); |
101 void gripe_square_matrix_required (const char *name); | 118 |
102 | 119 OCTAVE_DEPRECATED ("use 'err_square_matrix_required' instead") |
103 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 120 OCTAVE_NORETURN OCTINTERP_API extern void |
104 void gripe_string_invalid (void); | 121 gripe_square_matrix_required (const char *name); |
105 | 122 |
106 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 123 OCTAVE_DEPRECATED ("use 'err_string_invalid' instead") |
107 void gripe_unrecognized_data_fmt (const char *warn_for); | 124 OCTAVE_NORETURN OCTINTERP_API extern void |
108 | 125 gripe_string_invalid (void); |
109 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 126 |
110 void gripe_unrecognized_float_fmt (void); | 127 OCTAVE_DEPRECATED ("use 'err_unrecognized_data_fmt' instead") |
111 | 128 OCTAVE_NORETURN OCTINTERP_API extern void |
112 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 129 gripe_unrecognized_data_fmt (const char *warn_for); |
113 void gripe_user_returned_invalid (const char *name); | 130 |
114 | 131 OCTAVE_DEPRECATED ("use 'err_unrecognized_float_fmt' instead") |
115 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 132 OCTAVE_NORETURN OCTINTERP_API extern void |
116 void gripe_user_supplied_eval (const char *name); | 133 gripe_unrecognized_float_fmt (void); |
117 | 134 |
118 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 135 OCTAVE_DEPRECATED ("use 'err_user_returned_invalid' instead") |
119 void gripe_user_supplied_eval (octave_execution_exception& e, const char *name); | 136 OCTAVE_NORETURN OCTINTERP_API extern void |
120 | 137 gripe_user_returned_invalid (const char *name); |
121 OCTAVE_DEPRECATED OCTINTERP_API extern | 138 |
122 void gripe_warn_complex_cmp (void); | 139 OCTAVE_DEPRECATED ("use 'err_user_supplied_eval' instead") |
123 | 140 OCTAVE_NORETURN OCTINTERP_API extern void |
124 OCTAVE_DEPRECATED OCTINTERP_API extern | 141 gripe_user_supplied_eval (const char *name); |
125 void gripe_wrong_type_arg (const char *name, const char *s, | 142 |
126 bool is_error = true); | 143 OCTAVE_DEPRECATED ("use 'err_user_supplied_eval' instead") |
127 | 144 OCTAVE_NORETURN OCTINTERP_API extern void |
128 OCTAVE_DEPRECATED OCTINTERP_API extern | 145 gripe_user_supplied_eval (octave_execution_exception& e, const char *name); |
129 void gripe_wrong_type_arg (octave_execution_exception& e, | 146 |
130 const char *name, const char *s, | 147 OCTAVE_DEPRECATED ("use 'warn_complex_cmp' instead") |
131 bool is_error = true); | 148 OCTINTERP_API extern void |
132 | 149 gripe_warn_complex_cmp (void); |
133 OCTAVE_DEPRECATED OCTINTERP_API extern | 150 |
134 void gripe_wrong_type_arg (const char *name, const std::string& s, | 151 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
135 bool is_error = true); | 152 OCTINTERP_API extern void |
136 | 153 gripe_wrong_type_arg (const char *name, const char *s, |
137 OCTAVE_DEPRECATED OCTINTERP_API extern | 154 bool is_error = true); |
138 void gripe_wrong_type_arg (octave_execution_exception& e, | 155 |
139 const char *name, const std::string& s, | 156 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
140 bool is_error = true); | 157 OCTINTERP_API extern void |
141 | 158 gripe_wrong_type_arg (octave_execution_exception& e, |
142 OCTAVE_DEPRECATED OCTINTERP_API extern | 159 const char *name, const char *s, |
143 void gripe_wrong_type_arg (const char *name, const octave_value& tc, | 160 bool is_error = true); |
144 bool is_error = true); | 161 |
145 | 162 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
146 OCTAVE_DEPRECATED OCTINTERP_API extern | 163 OCTINTERP_API extern void |
147 void gripe_wrong_type_arg (octave_execution_exception& e, | 164 gripe_wrong_type_arg (const char *name, const std::string& s, |
148 const char *name, const octave_value& tc, | 165 bool is_error = true); |
149 bool is_error = true); | 166 |
150 | 167 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
151 OCTAVE_DEPRECATED OCTINTERP_API extern | 168 OCTINTERP_API extern void |
152 void gripe_wrong_type_arg (const std::string& name, const octave_value& tc, | 169 gripe_wrong_type_arg (octave_execution_exception& e, |
153 bool is_error = true); | 170 const char *name, const std::string& s, |
154 | 171 bool is_error = true); |
155 OCTAVE_DEPRECATED OCTINTERP_API extern | 172 |
156 void gripe_wrong_type_arg (octave_execution_exception& e, | 173 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' or 'warn_wrong_type_arg' instead") |
157 const std::string& name, const octave_value& tc, | 174 OCTINTERP_API extern void |
158 bool is_error = true); | 175 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
159 | 176 bool is_error = true); |
160 OCTAVE_DEPRECATED OCTINTERP_API extern | 177 |
161 void gripe_wrong_type_arg (const char *s, | 178 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
162 bool is_error = true); | 179 OCTINTERP_API extern void |
163 | 180 gripe_wrong_type_arg (octave_execution_exception& e, |
164 OCTAVE_DEPRECATED OCTINTERP_API extern | 181 const char *name, const octave_value& tc, |
165 void gripe_wrong_type_arg (octave_execution_exception& e, | 182 bool is_error = true); |
166 const char *s, | 183 |
167 bool is_error = true); | 184 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
168 | 185 OCTINTERP_API extern void |
169 OCTAVE_DEPRECATED OCTINTERP_API extern | 186 gripe_wrong_type_arg (const std::string& name, const octave_value& tc, |
170 void gripe_wrong_type_arg (const std::string& s, | 187 bool is_error = true); |
171 bool is_error = true); | 188 |
172 | 189 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
173 OCTAVE_DEPRECATED OCTINTERP_API extern | 190 OCTINTERP_API extern void |
174 void gripe_wrong_type_arg (octave_execution_exception& e, | 191 gripe_wrong_type_arg (octave_execution_exception& e, |
175 const std::string& s, | 192 const std::string& name, const octave_value& tc, |
176 bool is_error = true); | 193 bool is_error = true); |
177 | 194 |
178 OCTAVE_DEPRECATED OCTINTERP_API extern | 195 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
179 void gripe_wrong_type_arg (const octave_value& tc, | 196 OCTINTERP_API extern void |
180 bool is_error = true); | 197 gripe_wrong_type_arg (const char *s, bool is_error = true); |
181 | 198 |
182 OCTAVE_DEPRECATED OCTINTERP_API extern | 199 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
183 void gripe_wrong_type_arg (octave_execution_exception& e, | 200 OCTINTERP_API extern void |
184 const octave_value& tc, | 201 gripe_wrong_type_arg (octave_execution_exception& e, const char *s, |
185 bool is_error = true); | 202 bool is_error = true); |
186 | 203 |
187 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 204 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
188 void gripe_wrong_type_arg_for_binary_op (const octave_value& op); | 205 OCTINTERP_API extern void |
189 | 206 gripe_wrong_type_arg (const std::string& s, bool is_error = true); |
190 OCTAVE_DEPRECATED OCTAVE_NORETURN OCTINTERP_API extern | 207 |
191 void gripe_wrong_type_arg_for_unary_op (const octave_value& op); | 208 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") |
209 OCTINTERP_API extern void | |
210 gripe_wrong_type_arg (octave_execution_exception& e, const std::string& s, | |
211 bool is_error = true); | |
212 | |
213 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") | |
214 OCTINTERP_API extern void | |
215 gripe_wrong_type_arg (const octave_value& tc, bool is_error = true); | |
216 | |
217 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead") | |
218 OCTINTERP_API extern void | |
219 gripe_wrong_type_arg (octave_execution_exception& e, const octave_value& tc, | |
220 bool is_error = true); | |
221 | |
222 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg_for_binary_op' instead") | |
223 OCTAVE_NORETURN OCTINTERP_API extern void | |
224 gripe_wrong_type_arg_for_binary_op (const octave_value& op); | |
225 | |
226 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg_for_unary_op' instead") | |
227 OCTAVE_NORETURN OCTINTERP_API extern void | |
228 gripe_wrong_type_arg_for_unary_op (const octave_value& op); | |
192 | 229 |
193 #endif | 230 #endif |