Mercurial > hg > octave-terminal
changeset 5025:6d41c8ee35cf
[project @ 2004-09-22 15:53:38 by jwe]
author | jwe |
---|---|
date | Wed, 22 Sep 2004 15:53:38 +0000 |
parents | 1009e55429bc |
children | 06f7ff1aee5a |
files | src/ov-fcn-inline.cc |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ov-fcn-inline.cc +++ b/src/ov-fcn-inline.cc @@ -612,15 +612,13 @@ for (int i = 0; i < fun_len; i++) { - if (islower (fun[i]) + char new_c = fun[i]; + + if (new_c != 'i' && new_c != 'j' + && islower (new_c) && (i == 0 || ! islower (fun[i-1])) && (i == fun_len || ! islower (fun[i+1]))) { - char new_c = fun[i]; - - if (new_c == 'i' || new_c == 'j') - continue; - int new_dist = std::abs (new_c - 'x'); if (dist == -1 || new_dist < dist