Mercurial > octave
diff libinterp/parse-tree/oct-parse.yy @ 27507:2d537a089e5d
eliminate warn_for argument for source_file and parse_fcn_file functions
* interpreter.h, interpreter.cc (interpreter::source_file,
interpreter::parse_fcn_file): Eliminate warn_for argument.
Change all uses.
* pt-eval.h, pt-eval.cc (tree_evaluator::source_file): Eliminate
warn_for argument. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 10 Oct 2019 16:50:58 -0400 |
parents | c409d16b7190 |
children | fefc780b4e2e |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Thu Oct 10 16:27:57 2019 -0400 +++ b/libinterp/parse-tree/oct-parse.yy Thu Oct 10 16:50:58 2019 -0400 @@ -4538,7 +4538,7 @@ octave_value ov_fcn = interp.parse_fcn_file (full_file, file, "", "", "", true, - false, false, false, ""); + false, false, false); if (ov_fcn.is_defined ()) { @@ -4626,7 +4626,7 @@ octave_value ov_fcn = interp.parse_fcn_file (file.substr (0, len - 2), nm, dir_name, dispatch_type, package_name, false, - autoload, autoload, relative_lookup, ""); + autoload, autoload, relative_lookup); if (ov_fcn.is_defined ()) { @@ -4651,7 +4651,7 @@ { retval = interp.parse_fcn_file (file, nm, dir_name, dispatch_type, package_name, true, autoload, - autoload, relative_lookup, ""); + autoload, relative_lookup); } return retval; @@ -4766,11 +4766,11 @@ void source_file (const std::string& file_name, const std::string& context, - bool verbose, bool require_file, const std::string& warn_for) + bool verbose, bool require_file) { interpreter& interp = __get_interpreter__ ("source_file"); - interp.source_file (file_name, context, verbose, require_file, warn_for); + interp.source_file (file_name, context, verbose, require_file); } } @@ -5391,7 +5391,7 @@ octave_value ov_fcn = interp.parse_fcn_file (full_file, file, dir_name, "", "", true, false, - false, false, "__parse_file__"); + false, false); return retval; }