comparison src/gripes.cc @ 10315:57a59eae83cc

untabify src C++ source files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:41:46 -0500
parents cd96d29c5efa
children cc69a17ec801
comparison
equal deleted inserted replaced
10314:07ebe522dac2 10315:57a59eae83cc
63 63
64 void 64 void
65 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) 65 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2)
66 { 66 {
67 error ("nonconformant matrices (op1 is %dx%d, op2 is %dx%d)", 67 error ("nonconformant matrices (op1 is %dx%d, op2 is %dx%d)",
68 r1, c1, r2, c2); 68 r1, c1, r2, c2);
69 } 69 }
70 70
71 void 71 void
72 gripe_empty_arg (const char *name, bool is_error) 72 gripe_empty_arg (const char *name, bool is_error)
73 { 73 {
146 gripe_wrong_type_arg (name, s.c_str (), is_error); 146 gripe_wrong_type_arg (name, s.c_str (), is_error);
147 } 147 }
148 148
149 void 149 void
150 gripe_wrong_type_arg (const char *name, const octave_value& tc, 150 gripe_wrong_type_arg (const char *name, const octave_value& tc,
151 bool is_error) 151 bool is_error)
152 { 152 {
153 std::string type = tc.type_name (); 153 std::string type = tc.type_name ();
154 154
155 gripe_wrong_type_arg (name, type, is_error); 155 gripe_wrong_type_arg (name, type, is_error);
156 } 156 }
157 157
158 void 158 void
159 gripe_wrong_type_arg (const std::string& name, const octave_value& tc, 159 gripe_wrong_type_arg (const std::string& name, const octave_value& tc,
160 bool is_error) 160 bool is_error)
161 { 161 {
162 gripe_wrong_type_arg (name.c_str (), tc, is_error); 162 gripe_wrong_type_arg (name.c_str (), tc, is_error);
163 } 163 }
164 164
165 void 165 void
182 warning_with_id (id, "implicit conversion from %s to %s", from, to); 182 warning_with_id (id, "implicit conversion from %s to %s", from, to);
183 } 183 }
184 184
185 void 185 void
186 gripe_implicit_conversion (const std::string& id, 186 gripe_implicit_conversion (const std::string& id,
187 const std::string& from, const std::string& to) 187 const std::string& from, const std::string& to)
188 { 188 {
189 warning_with_id (id.c_str (), 189 warning_with_id (id.c_str (),
190 "implicit conversion from %s to %s", 190 "implicit conversion from %s to %s",
191 from.c_str (), to.c_str ()); 191 from.c_str (), to.c_str ());
192 } 192 }
193 193
194 void 194 void
195 gripe_divide_by_zero (void) 195 gripe_divide_by_zero (void)
196 { 196 {
199 199
200 void 200 void
201 gripe_logical_conversion (void) 201 gripe_logical_conversion (void)
202 { 202 {
203 warning_with_id ("Octave:logical-conversion", 203 warning_with_id ("Octave:logical-conversion",
204 "value not equal to 1 or 0 converted to logical 1"); 204 "value not equal to 1 or 0 converted to logical 1");
205 } 205 }
206 206
207 void 207 void
208 gripe_truncated_conversion (const char *srctype, const char *desttype) 208 gripe_truncated_conversion (const char *srctype, const char *desttype)
209 { 209 {