Mercurial > hg > octave-nkf
changeset 16856:787de2f144d9
Use string_fill_char when creating argn automatic variable (bug #34183).
* libinterp/octave-value/ov-usr-fcn.cc(bind_automatic_vars): Call charMatrix
constructor with Vstring_fill_char as default fill character. Use extern
declaration to bring in Vstring_fill_char from pt-mat.cc.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 26 Jun 2013 20:28:52 -0700 |
parents | 359ac80ecb30 |
children | 804d26cf8e5b |
files | libinterp/octave-value/ov-usr-fcn.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-usr-fcn.cc +++ b/libinterp/octave-value/ov-usr-fcn.cc @@ -58,6 +58,8 @@ // Whether to optimize subsasgn method calls. static bool Voptimize_subsasgn_calls = true; +// The character to fill with when creating string arrays. +extern char Vstring_fill_char; // see pt-mat.cc std::map<std::string, octave_value> octave_user_code::subfunctions (void) const @@ -698,7 +700,7 @@ // which might be redefined in a function. Keep the old argn name // for backward compatibility of functions that use it directly. - symbol_table::force_assign ("argn", arg_names); + symbol_table::force_assign ("argn", charMatrix (arg_names, Vstring_fill_char)); symbol_table::force_assign (".argn.", Cell (arg_names)); symbol_table::mark_hidden (".argn.");