Mercurial > octave-nkf
comparison src/ov-fcn.h @ 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 | 72c96de7a403 |
children |
comparison
equal
deleted
inserted
replaced
15004:ea6997657614 | 15005:74c7265c057a |
---|---|
58 bool is_function (void) const { return true; } | 58 bool is_function (void) const { return true; } |
59 | 59 |
60 virtual bool is_system_fcn_file (void) const { return false; } | 60 virtual bool is_system_fcn_file (void) const { return false; } |
61 | 61 |
62 virtual std::string fcn_file_name (void) const { return std::string (); } | 62 virtual std::string fcn_file_name (void) const { return std::string (); } |
63 | |
64 virtual std::string src_file_name (void) const { return std::string (); } | |
63 | 65 |
64 // The name to show in the profiler (also used as map-key). | 66 // The name to show in the profiler (also used as map-key). |
65 virtual std::string profiler_name (void) const { return name (); } | 67 virtual std::string profiler_name (void) const { return name (); } |
66 | 68 |
67 virtual std::string parent_fcn_name (void) const { return std::string (); } | 69 virtual std::string parent_fcn_name (void) const { return std::string (); } |