Mercurial > octave-nkf
view .hgsub @ 20242:abf85f8cbd6c
Expand type() to work on command-line entered functions (bug #40462).
* symtab.h (find_cmdline_function): New function.
* symtab.cc (__get_cmdline_fcn_txt__): New function.
* pt-pr-code.cc (tree_print_code::visit_octave_user_function):
Don't decrement indent level.
* pt-pr-code.cc (tree_print_code::visit_no_op_command):
Decrement indent level if end of fcn_or_script reached.
* pt-pr-code.cc (tree_print_code::visit_statement):
Just print newline.
* type.m: Check for command-line function and print string from
__get_cmdline_fcn_txt__() if it is not empty.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 20 May 2015 08:01:10 -0700 |
parents | 44f30dcd87e0 |
children |