Mercurial > octave
comparison src/gripes.cc @ 3523:b80bbb43a1a9
[project @ 2000-02-02 10:25:52 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 10:26:25 +0000 |
parents | 8b262e771614 |
children | 7690958e7726 |
comparison
equal
deleted
inserted
replaced
3522:bd422cf62f0c | 3523:b80bbb43a1a9 |
---|---|
35 } | 35 } |
36 | 36 |
37 void | 37 void |
38 gripe_string_invalid (void) | 38 gripe_string_invalid (void) |
39 { | 39 { |
40 error ("string constant used in invalid context"); | 40 error ("std::string constant used in invalid context"); |
41 } | 41 } |
42 | 42 |
43 void | 43 void |
44 gripe_range_invalid (void) | 44 gripe_range_invalid (void) |
45 { | 45 { |
85 { | 85 { |
86 error ("%s: user-supplied function returned invalid value", name); | 86 error ("%s: user-supplied function returned invalid value", name); |
87 } | 87 } |
88 | 88 |
89 void | 89 void |
90 gripe_invalid_conversion (const string& from, const string& to) | 90 gripe_invalid_conversion (const std::string& from, const std::string& to) |
91 { | 91 { |
92 error ("invalid conversion from %s to %s", from.c_str (), to.c_str ()); | 92 error ("invalid conversion from %s to %s", from.c_str (), to.c_str ()); |
93 } | 93 } |
94 | 94 |
95 void | 95 void |
121 { | 121 { |
122 error ("unable to convert from %s to %s format", from, to); | 122 error ("unable to convert from %s to %s format", from, to); |
123 } | 123 } |
124 | 124 |
125 void | 125 void |
126 gripe_wrong_type_arg (const char *name, const string& s, bool is_error) | 126 gripe_wrong_type_arg (const char *name, const std::string& s, bool is_error) |
127 { | 127 { |
128 if (is_error) | 128 if (is_error) |
129 error ("%s: wrong type argument `%s'", name, s.c_str ()); | 129 error ("%s: wrong type argument `%s'", name, s.c_str ()); |
130 else | 130 else |
131 warning ("%s: wrong type argument `%s'", name, s.c_str ()); | 131 warning ("%s: wrong type argument `%s'", name, s.c_str ()); |
133 | 133 |
134 void | 134 void |
135 gripe_wrong_type_arg (const char *name, const octave_value& tc, | 135 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
136 bool is_error) | 136 bool is_error) |
137 { | 137 { |
138 string type = tc.type_name (); | 138 std::string type = tc.type_name (); |
139 | 139 |
140 if (is_error) | 140 if (is_error) |
141 error ("%s: wrong type argument `%s'", name, type.c_str ()); | 141 error ("%s: wrong type argument `%s'", name, type.c_str ()); |
142 else | 142 else |
143 warning ("%s: wrong type argument `%s'", name, type.c_str ()); | 143 warning ("%s: wrong type argument `%s'", name, type.c_str ()); |
144 } | 144 } |
145 | 145 |
146 void | 146 void |
147 gripe_wrong_type_arg_for_unary_op (const octave_value& op) | 147 gripe_wrong_type_arg_for_unary_op (const octave_value& op) |
148 { | 148 { |
149 string type = op.type_name (); | 149 std::string type = op.type_name (); |
150 error ("invalid operand `%s' for unary operator", type.c_str ()); | 150 error ("invalid operand `%s' for unary operator", type.c_str ()); |
151 } | 151 } |
152 | 152 |
153 void | 153 void |
154 gripe_wrong_type_arg_for_binary_op (const octave_value& op) | 154 gripe_wrong_type_arg_for_binary_op (const octave_value& op) |
155 { | 155 { |
156 string type = op.type_name (); | 156 std::string type = op.type_name (); |
157 error ("invalid operand `%s' for binary operator", type.c_str ()); | 157 error ("invalid operand `%s' for binary operator", type.c_str ()); |
158 } | 158 } |
159 | 159 |
160 void | 160 void |
161 gripe_implicit_conversion (const char *from, const char *to) | 161 gripe_implicit_conversion (const char *from, const char *to) |