diff libinterp/corefcn/interpreter.h @ 23627:0a6e87804cab

don't use singleton pattern for dynamic_loader class * dynamic-ld.h, dynamic-ld.cc (dynamic_loader): Don't use singleton. Use Octave coding standard for member names. Change all uses. * interpreter.h, interpreter.cc (interpreter::m_dynamic_loader): New data member. (interpreter::get_dynamic_loader): New access function. * interpreter-private.h interpreter-private.cc (__get_dynamic_loader__): New function.
author John W. Eaton <jwe@octave.org>
date Fri, 16 Jun 2017 14:42:35 -0400
parents be7b884ac589
children 8a47d4735655
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.h	Fri Jun 16 16:25:56 2017 -0400
+++ b/libinterp/corefcn/interpreter.h	Fri Jun 16 14:42:35 2017 -0400
@@ -30,6 +30,7 @@
 #include "quit.h"
 #include "str-vec.h"
 
+#include "dynamic-ld.h"
 #include "load-path.h"
 #include "symtab.h"
 
@@ -134,6 +135,11 @@
       return m_initialized;
     }
 
+    dynamic_loader& get_dynamic_loader (void)
+    {
+      return m_dynamic_loader;
+    }
+
     load_path& get_load_path (void)
     {
       return m_load_path;
@@ -181,6 +187,8 @@
 
     application *m_app_context;
 
+    dynamic_loader m_dynamic_loader;
+
     load_path m_load_path;
 
     symbol_table m_symbol_table;