# HG changeset patch # User Jaroslav Hajek # Date 1269182150 -3600 # Node ID fb8c9db4a39c34884757fa2ad70ef3581872576b # Parent 62bb59f927b1456fc9d896dacc09a02f006ea761 fix parsing of function names in cellfun diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-03-21 Jaroslav Hajek + + * DLD-FUNCTIONS/cellfun.cc (Fcellfun): Fix the parsing of string + function arguments. + 2010-03-20 John W. Eaton * lex.ll: Don't undefine GNULIB_NAMESPACE. Define fprintf, diff --git a/src/DLD-FUNCTIONS/cellfun.cc b/src/DLD-FUNCTIONS/cellfun.cc --- a/src/DLD-FUNCTIONS/cellfun.cc +++ b/src/DLD-FUNCTIONS/cellfun.cc @@ -518,10 +518,12 @@ if (ptr_func && ! error_state) func = octave_value (ptr_func, true); } - - func = symbol_table::find_function (name); - if (func.is_undefined ()) - error ("cellfun: invalid function name: %s", name.c_str ()); + else + { + func = symbol_table::find_function (name); + if (func.is_undefined ()) + error ("cellfun: invalid function name: %s", name.c_str ()); + } } }