comparison src/variables.cc @ 11590:4ced6b90fffb

style fixes for warning and error messages in source files
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 18:43:39 -0500
parents 12df7854fa7c
children 1d13679b587e
comparison
equal deleted inserted replaced
11589:b0084095098e 11590:4ced6b90fffb
170 error ("%s: `%s' is not valid as a function", 170 error ("%s: `%s' is not valid as a function",
171 warn_for.c_str (), fname.c_str ()); 171 warn_for.c_str (), fname.c_str ());
172 return retval; 172 return retval;
173 } 173 }
174 174
175 warning ("%s: passing function body as a string is obsolete." 175 warning ("%s: passing function body as a string is obsolete; please use anonymous functions",
176 " Please use anonymous functions.", warn_for.c_str ()); 176 warn_for.c_str ());
177 } 177 }
178 else 178 else
179 error ("%s: `%s' is not valid as a function", 179 error ("%s: `%s' is not valid as a function",
180 warn_for.c_str (), fname.c_str ()); 180 warn_for.c_str (), fname.c_str ());
181 } 181 }