Mercurial > octave
diff libinterp/parse-tree/pt-eval.h @ 24361:8bcfddad15ec
use shared_ptr to manage symbol_scope objects
* symscope.h, symscope.cc (symbol_scope_rep): New class, renamed and
adapted from symbol_scope.
(symbol_scope): New class to manage symbol_scope_rep with shared_ptr.
Change all uses of pointers ot symbol_scope objects to be symbol_scope
objects or, in a few cases, pointers to symbol_scope_rep objects
instead.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 27 Nov 2017 01:12:05 -0500 |
parents | 4ced2bfd737e |
children | 3fc24b792a24 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.h Tue Dec 05 11:35:11 2017 -0800 +++ b/libinterp/parse-tree/pt-eval.h Mon Nov 27 01:12:05 2017 -0500 @@ -313,7 +313,7 @@ profiler& get_profiler (void) { return m_profiler; } - symbol_scope *get_current_scope (void); + symbol_scope get_current_scope (void); int max_recursion_depth (void) const { return m_max_recursion_depth; }