diff src/ov.cc @ 14013:1734ebe27134

move onCleanup function and class to liboctinterp * ov-oncleanup.h, ov-oncleanup.cc: Move onCleanup class and function here. * onCleanup.cc: From here. * DLD-FUNCTIONS/module-list: Delete onCleanup.cc from the list. * src/Makefile.am (OV_INCLUDES): Add ov-oncleanup.h to the list. (OV_SRC): add ov-oncleanup.cc to the list. * ov.cc (register_types): Register octave_oncleanup here. * ov-typeinfo.cc (octave_value_typeinfo::instance_ok): Do register cleanup function.
author John W. Eaton <jwe@octave.org>
date Thu, 08 Dec 2011 00:52:39 -0500
parents 6ead4dc1ca55
children 77adde2e79ac
line wrap: on
line diff
--- a/src/ov.cc	Thu Dec 08 00:49:51 2011 -0500
+++ b/src/ov.cc	Thu Dec 08 00:52:39 2011 -0500
@@ -65,6 +65,7 @@
 #include "ov-range.h"
 #include "ov-struct.h"
 #include "ov-class.h"
+#include "ov-cleanup.h"
 #include "ov-cs-list.h"
 #include "ov-colon.h"
 #include "ov-builtin.h"
@@ -2689,6 +2690,7 @@
   octave_null_str::register_type ();
   octave_null_sq_str::register_type ();
   octave_lazy_index::register_type ();
+  octave_oncleanup::register_type ();
 }
 
 DEFUN (sizeof, args, ,