This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the EGCS project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Genrecog bugfix version 2


On Sun, Jul 25, 1999 at 03:12:25AM +0200, Jan Hubicka wrote:
> +   int cmp = strcmp (d1->position, d2->position);
...
> +        /* Try to find corresponding position in the second.  */
> +        if (cmp < 0)

I don't understand the use of strcmp to determine which
of d1 or d2 to back out and test.  Perhaps you were looking
for the longer of two strings?  Or perhaps we always know
that one is a prefix of the longer?


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]