diff src/ov-usr-fcn.h @ 7876:8447a5024650

clear subfunctions when clearing parent function
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jun 2008 15:04:12 -0400
parents 5adeea5de26c
children 0d607e8dbbfa
line wrap: on
line diff
--- a/src/ov-usr-fcn.h	Fri Jun 06 11:35:10 2008 -0400
+++ b/src/ov-usr-fcn.h	Fri Jun 06 15:04:12 2008 -0400
@@ -225,6 +225,11 @@
 
   bool is_user_function (void) const { return true; }
 
+  void erase_subfunctions (void)
+    {
+      symbol_table::erase_subfunctions_in_scope (local_scope);
+    }
+
   bool takes_varargs (void) const;
 
   bool takes_var_return (void) const;