changeset 18477:aa7ca90ce746 stable

avoid problems if popen is a macro * file-io.cc (Fpopen): Define with DEFUNX instead of DEFUN.
author John W. Eaton <jwe@octave.org>
date Mon, 17 Feb 2014 02:19:52 -0500
parents df8e5e3a0f67
children 3c1a28978599
files libinterp/corefcn/file-io.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/file-io.cc	Sun Feb 16 18:45:14 2014 -0800
+++ b/libinterp/corefcn/file-io.cc	Mon Feb 17 02:19:52 2014 -0500
@@ -1801,7 +1801,7 @@
   return retval;
 }
 
-DEFUN (popen, args, ,
+DEFUNX ("popen", Fpopen, args, ,
        "-*- texinfo -*-\n\
 @deftypefn {Built-in Function} {@var{fid} =} popen (@var{command}, @var{mode})\n\
 Start a process and create a pipe.  The name of the command to run is\n\