Mercurial > octave
diff test/module.mk @ 27745:7a45100a40c4
allow private scripts to be called from other private scripts
This issue was discovered in bug #57236 but that report is not
specifically about this problem.
* symscope.cc, symscope.h (symbol_scope_rep::m_code):
Rename from m_fcn. Change all uses.
(symbol_scope_rep::user_code, symbol_scope::user_code): Rename from
function. Change all uses.
(symbol_scope_rep::set_user_code, symbol_scope::set_user_code): Rename
from set_function. Change all uses.
* ov-usr-fcn.h, ov-usr-fcn.cc (octave_user_code::octave_user_code):
Call symbol_scope::set_user_code.
(octave_user_code::octave_user_function): Don't call
symbol_scope::set_function.
* oct-parse.yy (base_parser::make_script): Also call stash_dir_name
for scripts.
* test/private-functions: New test directory.
* test/module.mk: Include test/private-function/module.mk.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 24 Nov 2019 14:01:16 -0600 |
parents | 6731d89ef576 |
children | d597dc0a5f74 |
line wrap: on
line diff
--- a/test/module.mk Sun Nov 24 13:38:37 2019 -0600 +++ b/test/module.mk Sun Nov 24 14:01:16 2019 -0600 @@ -89,6 +89,7 @@ include %reldir%/local-functions/module.mk include %reldir%/mex/module.mk include %reldir%/nest/module.mk +include %reldir%/private-functions/module.mk include %reldir%/publish/module.mk include %reldir%/pkg/module.mk