diff src/ov-fcn-handle.cc @ 7745:0ff0fc033f28

better handling of functions found by relative lookup
author John W. Eaton <jwe@octave.org>
date Wed, 30 Apr 2008 17:51:02 -0400
parents 14b841c47a5f
children 45de7d8dac72
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc	Wed Apr 30 14:32:41 2008 -0400
+++ b/src/ov-fcn-handle.cc	Wed Apr 30 17:51:02 2008 -0400
@@ -116,10 +116,10 @@
 {
   bool success = true;
 
-  if (octaveroot.length () != 0 && 
-      fpath.length () >= octaveroot.length () &&
-      fpath.substr (0, octaveroot.length ()) == octaveroot &&
-      OCTAVE_EXEC_PREFIX != octaveroot)
+  if (octaveroot.length () != 0
+      && fpath.length () >= octaveroot.length ()
+      && fpath.substr (0, octaveroot.length ()) == octaveroot
+      && OCTAVE_EXEC_PREFIX != octaveroot)
     {
       // First check if just replacing matlabroot is enough
       std::string str = OCTAVE_EXEC_PREFIX + 
@@ -1077,7 +1077,7 @@
 %! f = @(x) a + x;
 %! g = @(x) 2 * x;
 %! hm = @flops;
-%! hdld = @time;
+%! hdld = @svd;
 %! hbi = @log2;
 %! f2 = f;
 %! g2 = g;