Mercurial > octave
diff libinterp/corefcn/interpreter-private.h @ 25435:a52e6fb674b1
eliminate some singletons and static & global variables
* pager.h, pager.cc: Rewrite pager_stream and diary_stream classes so
they are not singletons. Change all uses.
(output_system): New class.
* interpreter.h, interpreter.cc (interpreter::m_output_system):
New data member. Provide access function.
* interpreter-private.h, interpreter-private.cc
(__get_output_system__): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 25 May 2018 16:30:01 -0400 |
parents | ab10403a0b50 |
children | 69fc8935020b |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter-private.h Sat Mar 17 11:59:05 2018 -0500 +++ b/libinterp/corefcn/interpreter-private.h Fri May 25 16:30:01 2018 -0400 @@ -42,6 +42,7 @@ class input_system; class interpreter; class load_path; + class output_system; class tree_evaluator; class type_info; @@ -55,6 +56,8 @@ extern load_path& __get_load_path__ (const std::string& who); + extern output_system& __get_output_system__ (const std::string& who); + extern type_info& __get_type_info__ (const std::string& who); extern symbol_table& __get_symbol_table__ (const std::string& who);