projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0792bf8
)
simplify fehler35
author
Matthias Braun
<matze@braunis.de>
Wed, 25 Jul 2007 18:49:03 +0000
(18:49 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 25 Jul 2007 18:49:03 +0000
(18:49 +0000)
[r15352]
ir/be/test/fehler35.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler35.c
b/ir/be/test/fehler35.c
index
6912af2
..
3801ef3
100644
(file)
--- a/
ir/be/test/fehler35.c
+++ b/
ir/be/test/fehler35.c
@@
-20,16
+20,7
@@
int compare_string(char *CompValue, char *ValuePtr)
unsigned char *p0 = (unsigned char *)CompValue;
unsigned char *p1 = (unsigned char *)ValuePtr;
unsigned char *p0 = (unsigned char *)CompValue;
unsigned char *p1 = (unsigned char *)ValuePtr;
- /* Compare the string pointed to by CompValue
- against string pointed to by ValuePtr */
-#if 0
- if (DeBug)
- if (sprintf (Msg, " Ut_CompareString:: <%-24s> To <%-24s>;\n",
- p0, p1))
- TraceMsg (0, Msg);
-#endif
-
- for (i = 0; i == 0 && *p0 != NULL && *p1 != NULL; p0++, p1++)
+ for (i = 0; i == 0 && *p0 != '\0' && *p1 != '\0'; p0++, p1++)
{
if (*p0 != *p1)
if (*p0 < *p1)
{
if (*p0 != *p1)
if (*p0 < *p1)
@@
-38,20
+29,13
@@
int compare_string(char *CompValue, char *ValuePtr)
i = 1;
}
i = 1;
}
- if (i
== 0)
+ if (i == 0)
if (*p0 != *p1)
if (*p0 != *p1)
- if (*p0
== NULL
)
+ if (*p0
== '\0'
)
i = -1;
else
i = 1;
i = -1;
else
i = 1;
-#if 0
- if (ClassBug && !SetBug)
- if (sprintf (Msg, " Ut_Compare:: <%-16s> To <%-16s>; i = %d\n",
- CompValue, ValuePtr, i))
- TraceMsg (0, Msg);
-#endif
-
return(i);
}
return(i);
}