tiny rewrite, make use of cieq()

This commit is contained in:
rlar 2010-11-06 17:43:52 +00:00
parent 21a31ab2c2
commit 2d6930b3bc
2 changed files with 5 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2010-11-06 Robert Larice
* src/frontend/diff.c :
tiny rewrite, make use of cieq()
2010-11-06 Robert Larice
* src/frontend/parse.c ,
* src/frontend/typesdef.c ,

View File

@ -25,8 +25,6 @@ nameeq(char *n1, char *n2)
char buf1[BSIZE_SP], buf2[BSIZE_SP];
char *tmp;
int i;
if (eq(n1, n2))
return (TRUE);
@ -63,13 +61,7 @@ nameeq(char *n1, char *n2)
else
(void) strcpy(buf2, n2);
for (i = 0; buf1[i]; i++)
if (isupper(buf1[i]))
buf1[i] = tolower(buf1[i]);
for (i = 0; buf2[i]; i++)
if (isupper(buf2[i]))
buf2[i] = tolower(buf2[i]);
return (eq(buf1, buf2) ? TRUE : FALSE);
return (cieq(buf1, buf2) ? TRUE : FALSE);
}
void