Mercurial > octave
diff libinterp/corefcn/interpreter-private.cc @ 24738:3695c2cd69b8
don't use singleton pattern for bp_table
* bp-table.h, bp-table.cc (class bp_table): Don't use singleton
pattern. Move inside octave namespace. Change all uses.
* interpreter-private.h, interpreter-private.cc (__get_bp_table__):
New function.
* interpreter.h, interpreter.cc (interpreter::m_bp_table): New data
member.
(interpreter::interpreter): Initialize it.
(interpreter::get_bp_table): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 12 Feb 2018 00:58:31 -0500 |
parents | 5d8c4cbc56d7 |
children | 6652d3823428 |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter-private.cc Sun Feb 11 10:26:22 2018 -0800 +++ b/libinterp/corefcn/interpreter-private.cc Mon Feb 12 00:58:31 2018 -0500 @@ -26,6 +26,7 @@ #include <string> +#include "bp-table.h" #include "call-stack.h" #include "child-list.h" #include "error.h" @@ -111,6 +112,13 @@ return interp.get_evaluator (); } + bp_table& __get_bp_table__ (const std::string& who) + { + interpreter& interp = __get_interpreter__ (who); + + return interp.get_bp_table (); + } + call_stack& __get_call_stack__ (const std::string& who) { interpreter& interp = __get_interpreter__ (who);