Mercurial > hg > octave-lyh
changeset 9992:a5a05b2ebb9d
avoid duplicate function cleaning in symbol_table::cleanup
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 16 Dec 2009 07:38:52 +0100 |
parents | 1300d9ced492 |
children | b22a2f4b34aa |
files | src/ChangeLog src/symtab.cc |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-12-16 Jaroslav Hajek <highegg@gmail.com> + + * symtab.cc (symbol_table::cleanup): Call clear_variables rather than + clear_all on the top and global scopes. + 2009-12-16 John W. Eaton <jwe@octave.org> * DLD-FUNCTIONS/fltk_backend.cc (F__init_fltk__):
--- a/src/symtab.cc +++ b/src/symtab.cc @@ -1334,14 +1334,14 @@ void symbol_table::cleanup (void) { // Clear variables in top scope. - all_instances[xtop_scope]->clear_all (); + all_instances[xtop_scope]->clear_variables (); // Clear function table. This is a hard clear, ignoring mlocked functions. fcn_table.clear (); // Clear variables in global scope. // FIXME: are there any? - all_instances[xglobal_scope]->clear_all (); + all_instances[xglobal_scope]->clear_variables (); // Clear global variables. global_table.clear ();