diff src/ov-fcn.h @ 6323:ea65de49e18e

[project @ 2007-02-17 02:51:02 by jwe]
author jwe
date Sat, 17 Feb 2007 02:51:03 +0000
parents c68896f193e3
children 0ee6bda23b87
line wrap: on
line diff
--- a/src/ov-fcn.h	Fri Feb 16 21:48:21 2007 +0000
+++ b/src/ov-fcn.h	Sat Feb 17 02:51:03 2007 +0000
@@ -61,6 +61,8 @@
 
   virtual std::string fcn_file_name (void) const { return std::string (); }
 
+  virtual std::string parent_fcn_name (void) const { return std::string (); }
+
   virtual void mark_fcn_file_up_to_date (const octave_time&) { }
 
   virtual octave_time time_parsed (void) const
@@ -79,6 +81,10 @@
 
   virtual bool takes_var_return (void) const { return false; }
 
+  void mark_relative (void) { relative = true; }
+
+  bool is_relative (void) const { return relative; }
+
   std::string name (void) const { return my_name; }
 
   void document (const std::string& ds) { doc = ds; }
@@ -93,7 +99,10 @@
 
   octave_function (const std::string& nm,
 		   const std::string& ds = std::string ())
-    : my_name (nm), doc (ds) { }
+    : relative (false), my_name (nm), doc (ds) { }
+
+  // TRUE if this function was found from a relative path element.
+  bool relative;
 
   // The name of this function.
   std::string my_name;