diff libinterp/corefcn/interpreter.cc @ 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 91c8f006ed8b
children 8a47d4735655
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc	Fri Jun 16 16:25:56 2017 -0400
+++ b/libinterp/corefcn/interpreter.cc	Fri Jun 16 14:42:35 2017 -0400
@@ -372,11 +372,18 @@
   // path.
 
   interpreter::interpreter (application *app_context)
-    : m_app_context (app_context), m_load_path (), m_symbol_table (),
-      m_evaluator (new tree_evaluator (*this)), m_interactive (false),
-      m_read_site_files (true), m_read_init_files (m_app_context != 0),
-      m_verbose (false), m_inhibit_startup_message (false),
-      m_load_path_initialized (false), m_history_initialized (false),
+    : m_app_context (app_context),
+      m_dynamic_loader (*this),
+      m_load_path (),
+      m_symbol_table (),
+      m_evaluator (new tree_evaluator (*this)),
+      m_interactive (false),
+      m_read_site_files (true),
+      m_read_init_files (m_app_context != 0),
+      m_verbose (false),
+      m_inhibit_startup_message (false),
+      m_load_path_initialized (false),
+      m_history_initialized (false),
       m_initialized (false)
   {
     if (instance)