Mercurial > hg > octave-nkf
diff src/ov-fcn-inline.cc @ 4954:ed0f3cb6d3d4
[project @ 2004-09-01 21:24:53 by jwe]
author | jwe |
---|---|
date | Wed, 01 Sep 2004 21:24:54 +0000 |
parents | cd58733c326b |
children | 0ab18cbe8b5f |
line wrap: on
line diff
--- a/src/ov-fcn-inline.cc +++ b/src/ov-fcn-inline.cc @@ -55,11 +55,7 @@ : octave_fcn_handle (0, n), iftext (f), ifargs (a) { // Find a function name that isn't already in the symbol table. - - std::string fname = "__inline__"; - - while (symbol_exist (fname)) - fname.append ("X"); + std::string fname = unique_symbol_name ("__inline__"); // Form a string representing the function. @@ -91,10 +87,7 @@ { fcn = tmp; - // XXX FIXME XXX -- probably shouldn't be directly altering the - // symbol table here. - - fbi_sym_tab->clear_function (fname); + clear_function (fname); } else error ("inline: unable to define function");