changeset 4978:8719102eb804

[project @ 2004-09-08 23:13:24 by jwe]
author jwe
date Wed, 08 Sep 2004 23:13:24 +0000
parents 3736fb91aa2d
children ce4e3d39d05b
files src/ChangeLog src/ov-fcn-handle.cc
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Sep 08 21:07:54 2004 +0000
+++ b/src/ChangeLog	Wed Sep 08 23:13:24 2004 +0000
@@ -1,5 +1,8 @@
 2004-09-08  John W. Eaton  <jwe@octave.org>
 
+	* ov-fcn-handle.cc (Ffunc2str, Ffunctions): Don't call substr(1)
+	on fh_nm, since we no longer need to skip "@" in the name.
+
 	* error.cc (pr_where): Do a better job of printing location info.
 
 	* input.cc (get_user_input): Print location info before the debug
--- a/src/ov-fcn-handle.cc	Wed Sep 08 21:07:54 2004 +0000
+++ b/src/ov-fcn-handle.cc	Wed Sep 08 23:13:24 2004 +0000
@@ -136,7 +136,7 @@
 
 	      std::string fh_nm = fh->fcn_name ();
 
-	      m.assign ("function", fh_nm.substr (1));
+	      m.assign ("function", fh_nm);
 
 	      if (fcn->is_nested_function ())
 		m.assign ("type", "subfunction");
@@ -185,7 +185,7 @@
       if (! error_state && fh)
 	{
 	  std::string fh_nm = fh->fcn_name ();
-	  retval = fh_nm.substr (1);
+	  retval = fh_nm;
 	}
       else
 	error ("func2str: expecting valid function handle as first argument");