diff libinterp/corefcn/interpreter-private.h @ 24734:5d8c4cbc56d7

don't use singleton pattern for child_list * child-list.h, child-list.cc: Don't use singleton pattern. * interpreter.h, interpreter.cc (interpreter::m_child_list): New data member. (interpreter::get_child_list): New method. * interpreter-private.h, interpreter-private.cc (__get_child_list__): New function. * pager.cc, sighandlers.cc, toplev.cc: Access child_list through interpreter.
author John W. Eaton <jwe@octave.org>
date Sun, 11 Feb 2018 11:17:34 -0500
parents 46440078d73b
children 3695c2cd69b8
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter-private.h	Sun Feb 11 09:20:36 2018 -0500
+++ b/libinterp/corefcn/interpreter-private.h	Sun Feb 11 11:17:34 2018 -0500
@@ -34,6 +34,7 @@
 namespace octave
 {
   class call_stack;
+  class child_list;
   class dynamic_loader;
   class gtk_manager;
   class help_system;
@@ -62,6 +63,8 @@
 
   extern call_stack& __get_call_stack__ (const std::string& who);
 
+  extern child_list& __get_child_list__ (const std::string& who);
+
   extern cdef_manager& __get_cdef_manager__ (const std::string& who);
 
   extern gtk_manager& __get_gtk_manager__ (const std::string& who);