comparison libinterp/corefcn/dirfns.cc @ 21127:df7891224709

maint: Use "return ovl (...)" in DEFUN macros. * cellfun.cc, data.cc, debug.cc, defaults.cc, det.cc, dirfns.cc, dlmread.cc, error.cc, file-io.cc, getrusage.cc, graphics.cc, help.cc, input.cc, inv.cc, kron.cc, load-path.cc, pager.cc, pinv.cc, rand.cc, strfns.cc, urlwrite.cc, chol.cc, ov-classdef.cc, ov-struct.cc: Use "return ovl (...)" in DEFUN macros, rather than "return octave_value (...)".
author Rik <rik@octave.org>
date Thu, 21 Jan 2016 09:47:50 -0800
parents e39e05d90788
children fcac5dbbf9ed
comparison
equal deleted inserted replaced
21126:ba0a4b4f021d 21127:df7891224709
156 @deftypefnx {} {@var{dir} =} pwd ()\n\ 156 @deftypefnx {} {@var{dir} =} pwd ()\n\
157 Return the current working directory.\n\ 157 Return the current working directory.\n\
158 @seealso{cd, dir, ls, mkdir, rmdir}\n\ 158 @seealso{cd, dir, ls, mkdir, rmdir}\n\
159 @end deftypefn") 159 @end deftypefn")
160 { 160 {
161 return octave_value (octave_env::get_current_directory ()); 161 return ovl (octave_env::get_current_directory ());
162 } 162 }
163 163
164 DEFUN (readdir, args, , 164 DEFUN (readdir, args, ,
165 "-*- texinfo -*-\n\ 165 "-*- texinfo -*-\n\
166 @deftypefn {} {@var{files} =} readdir (@var{dir})\n\ 166 @deftypefn {} {@var{files} =} readdir (@var{dir})\n\
481 481
482 string_vector pat = args(0).xstring_vector_value ("glob: PATTERN must be a string"); 482 string_vector pat = args(0).xstring_vector_value ("glob: PATTERN must be a string");
483 483
484 glob_match pattern (file_ops::tilde_expand (pat)); 484 glob_match pattern (file_ops::tilde_expand (pat));
485 485
486 return octave_value (Cell (pattern.glob ())); 486 return ovl (Cell (pattern.glob ()));
487 } 487 }
488 488
489 /* 489 /*
490 %!test 490 %!test
491 %! tmpdir = tempname; 491 %! tmpdir = tempname;