Mercurial > octave
diff libinterp/parse-tree/module.mk @ 25824:91e1ca0e3a9d
Save all scopes of nested anonymous functions (bug #45969).
* libinterp/parse-tree/pt-anon-scopes.[h,cc]: New files with new class
tree_anon_scopes derived from class tree_walker. Collects variables in
all scopes of nested anonymous function definitions.
* libinterp/octave-value/ov-fcn-handle.cc
(octave_fcn_handle::save_ascii, ::save_binary, ::save_hdf5): Use
tree_anon_scopes object to save variables of anonymous functions.
* test/bug-45969/bug-45969.tst, test/bug-45969/module.mk:
New testfiles.
author | Olaf Till <i7tiol@t-online.de> |
---|---|
date | Sat, 18 Aug 2018 23:05:41 +0200 |
parents | e1c3d1c6e896 |
children | 581d01526b34 |
line wrap: on
line diff
--- a/libinterp/parse-tree/module.mk Mon Aug 27 14:43:12 2018 -0700 +++ b/libinterp/parse-tree/module.mk Sat Aug 18 23:05:41 2018 +0200 @@ -9,6 +9,7 @@ %reldir%/parse.h \ %reldir%/profiler.h \ %reldir%/pt-all.h \ + %reldir%/pt-anon-scopes.h \ %reldir%/pt-arg-list.h \ %reldir%/pt-array-list.h \ %reldir%/pt-assign.h \ @@ -59,6 +60,7 @@ %reldir%/oct-parse.h \ %reldir%/oct-parse.yy \ %reldir%/profiler.cc \ + %reldir%/pt-anon-scopes.cc \ %reldir%/pt-arg-list.cc \ %reldir%/pt-array-list.cc \ %reldir%/pt-assign.cc \