Mercurial > hg > octave-lyh
changeset 7764:aaa808ed5d53
Also ignore other constants in Finline
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 06 May 2008 13:15:26 -0400 |
parents | 0c6b4c7d7117 |
children | e800c69ee467 |
files | src/ChangeLog src/ov-fcn-inline.cc |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2008-05-06 David Bateman <dbateman@free.fr> + * ov-fcn-inline.cc (Finline): Also ignore NaN, Inf, pi, NA and eps. + * bitfcns.cc (BITOP): Treat octave_bool types and octave_scalar. 2008-05-06 John W. Eaton <jwe@octave.org>
--- a/src/ov-fcn-inline.cc +++ b/src/ov-fcn-inline.cc @@ -673,7 +673,11 @@ break; } - if (! have_arg && tmp_arg != "i" && tmp_arg != "j") + if (! have_arg && tmp_arg != "i" && tmp_arg != "j" && + tmp_arg != "NaN" && tmp_arg != "nan" && + tmp_arg != "Inf" && tmp_arg != "inf" && + tmp_arg != "NA" && tmp_arg != "pi" && + tmp_arg != "eps") fargs.append (tmp_arg); tmp_arg = std::string ();