Mercurial > hg > octave-nkf
diff src/pt-arg-list.h @ 10206:37a08e0ce2dc
support Matlab-style empty output/input arguments
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 27 Jan 2010 12:41:49 +0100 |
parents | cd96d29c5efa |
children | f3b65e1ae355 |
line wrap: on
line diff
--- a/src/pt-arg-list.h +++ b/src/pt-arg-list.h @@ -46,16 +46,21 @@ typedef tree_expression* element_type; tree_argument_list (void) - : list_includes_magic_end (false), simple_assign_lhs (false) { } + : list_includes_magic_end (false), list_includes_magic_tilde (false), + simple_assign_lhs (false) { } tree_argument_list (tree_expression *t) - : list_includes_magic_end (false), simple_assign_lhs (false) + : list_includes_magic_end (false), list_includes_magic_tilde (false), + simple_assign_lhs (false) { append (t); } ~tree_argument_list (void); bool has_magic_end (void) const; + bool has_magic_tilde (void) const + { return list_includes_magic_tilde; } + tree_expression *remove_front (void) { iterator p = begin (); @@ -87,6 +92,8 @@ bool list_includes_magic_end; + bool list_includes_magic_tilde; + bool simple_assign_lhs; // No copying!