diff libinterp/corefcn/dirfns.cc @ 19119:f506de9089e8

Deprecate fnmatch function. * NEWS: Announce deprecation. * scripts/deprecated/fnmatch.m: m-file to replace C++ function and issue deprecated warning. * scripts/deprecated/module.mk: Add fnmatch.m to build system. * dirfns.cc: Rename fnmatch to __fnmatch__ internal version. Switch DEFUNX to DEFUN. * test/system.tst: Remove fnmatch tests
author Rik <rik@octave.org>
date Sat, 20 Sep 2014 21:17:43 -0700
parents 175b392e91fe
children 6ca096827123
line wrap: on
line diff
--- a/libinterp/corefcn/dirfns.cc	Sat Sep 20 20:31:16 2014 -0700
+++ b/libinterp/corefcn/dirfns.cc	Sat Sep 20 21:17:43 2014 -0700
@@ -608,7 +608,7 @@
         [2,1] = file2\n\
       @}\n\
 @end example\n\
-@seealso{ls, dir, readdir, what, fnmatch}\n\
+@seealso{ls, dir, readdir, what}\n\
 @end deftypefn")
 {
   octave_value retval;
@@ -664,7 +664,7 @@
 %! assert (result3, {"file1"; "file2"});
 */
 
-DEFUNX ("fnmatch", Ffnmatch, args, ,
+DEFUN (__fnmatch__, args, ,
         "-*- texinfo -*-\n\
 @deftypefn {Built-in Function} {} fnmatch (@var{pattern}, @var{string})\n\
 Return true or false for each element of @var{string} that matches any of\n\