Mercurial > octave-nkf
diff src/help.cc @ 15005:74c7265c057a
fix failure with function handles caused by changeset ea6997657614
* ov-fcn-handle.cc (octave_fcn_handle::set_fcn): Undo previous change.
* ov-fcn.h (octave_function::src_file_name): New virtual function.
* ov-builtin.h (octave_builtin::src_file_name): Rename from
octave_builtin::fcn_file_name.
* help.cc (do_which): Return source file name for built-in functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 23 Jul 2012 15:23:41 -0400 |
parents | 877263efaacc |
children | 560317fd5977 |
line wrap: on
line diff
--- a/src/help.cc Mon Jul 23 12:59:44 2012 -0400 +++ b/src/help.cc Mon Jul 23 15:23:41 2012 -0400 @@ -1118,7 +1118,10 @@ if (fcn->is_user_function ()) type = "command-line function"; else - type = "built-in function"; + { + file = fcn->src_file_name (); + type = "built-in function"; + } } else type = val.is_user_script ()