Mercurial > octave-nkf
diff libinterp/corefcn/utils.cc @ 18070:ff05d5b70411
Deprecate find_dir_in_path in favor of dir_in_path.
* NEWS: Announce deprecation of find_dir_in_path and new function dir_in_path.
* scripts/deprecated/find_dir_in_path.m: Add script to call dir_in_path and
give deprecation warning.
* scripts/deprecated/module.mk: Add deprecated find_dir_in_path.m to build
system.
* utils.cc (Fdir_in_path): Renamed find_dir_in_path to dir_in_path.
* help.m, what.m, rundemos.m, runtests.m: Chane instances of find_dir_in_path
to dir_in_path.
* utils.cc, variables.cc: Change seealso links to point to dir_in_path.
* func.txi: Document dir_in_path function.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 03 Dec 2013 15:59:56 -0800 |
parents | aca545afdf25 |
children | 1e27079409bf |
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc Tue Dec 03 16:06:46 2013 -0800 +++ b/libinterp/corefcn/utils.cc Tue Dec 03 15:59:56 2013 -0800 @@ -303,7 +303,7 @@ If the second optional argument @qcode{\"all\"} is supplied, return\n\ a cell array containing the list of all files that have the same\n\ name in the path. If no files are found, return an empty cell array.\n\ -@seealso{file_in_path, find_dir_in_path, path}\n\ +@seealso{file_in_path, dir_in_path, path}\n\ @end deftypefn") { octave_value retval; @@ -380,7 +380,7 @@ If the third optional argument @qcode{\"all\"} is supplied, return\n\ a cell array containing the list of all files that have the same\n\ name in the path. If no files are found, return an empty cell array.\n\ -@seealso{file_in_loadpath, find_dir_in_path, path}\n\ +@seealso{file_in_loadpath, dir_in_path, path}\n\ @end deftypefn") { octave_value retval; @@ -892,10 +892,10 @@ %!error make_absolute_filename ("foo", "bar") */ -DEFUN (find_dir_in_path, args, , +DEFUN (dir_in_path, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} find_dir_in_path (@var{dir})\n\ -@deftypefnx {Built-in Function} {} find_dir_in_path (@var{dir}, \"all\")\n\ +@deftypefn {Built-in Function} {} dir_in_path (@var{dir})\n\ +@deftypefnx {Built-in Function} {} dir_in_path (@var{dir}, \"all\")\n\ Return the full name of the path element matching @var{dir}. The\n\ match is performed at the end of each path element. For example, if\n\ @var{dir} is @qcode{\"foo/bar\"}, it matches the path element\n\ @@ -926,7 +926,7 @@ retval = Cell (load_path::find_matching_dirs (dir)); } else - error ("find_dir_in_path: DIR must be a directory name"); + error ("dir_in_path: DIR must be a directory name"); } else print_usage (); @@ -937,8 +937,8 @@ /* ## FIXME: We need system-dependent tests here. -%!error find_dir_in_path () -%!error find_dir_in_path ("foo", "bar", 1) +%!error dir_in_path () +%!error dir_in_path ("foo", "bar", 1) */ DEFUNX ("errno", Ferrno, args, ,