# HG changeset patch # User jwe # Date 1095865922 0 # Node ID 89814b22b729ed3310829b3bdaf42f4936a4e5ba # Parent 4da942f0b76f647013042a100a4cb7e4c7bfa9df [project @ 2004-09-22 15:12:02 by jwe] diff -r 4da942f0b76f -r 89814b22b729 src/ov-fcn-inline.cc --- a/src/ov-fcn-inline.cc Wed Sep 22 15:05:43 2004 +0000 +++ b/src/ov-fcn-inline.cc Wed Sep 22 15:12:02 2004 +0000 @@ -608,19 +608,21 @@ fargs.resize (1); fargs(0) = "x"; - for (int i = 0; i < fun.length(); i++) + for (int i = 0; i < fun.length (); i++) { - if (islower (fun [i]) && - (i == 0 ? true : !islower (fun [i-1])) && - (i == fun.length() ? true : !islower (fun [i+1]))) + if (islower (fun[i]) + && (i == 0 || ! islower (fun[i-1])) + && (i == fun.length () || ! 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) || - ((new_dist == dist) && (c < new_c))) + + int new_dist = std::abs (new_c - 'x'); + + if (dist == -1 || (new_dist < dist) + || (new_dist == dist && c < new_c)) { fargs(0) = new_c; dist = new_dist;