forked from enlightenment/efl
parent
ab64c38407
commit
ad337df8cf
|
@ -616,7 +616,7 @@ findopcode(char *instr, int maxlen)
|
|||
{
|
||||
mid = (low + high) / 2;
|
||||
assert(opcodelist[mid].name != NULL);
|
||||
cmp = stricmp(str, opcodelist[mid].name);
|
||||
cmp = strcasecmp(str, opcodelist[mid].name);
|
||||
if (cmp > 0)
|
||||
low = mid + 1;
|
||||
else
|
||||
|
@ -624,7 +624,7 @@ findopcode(char *instr, int maxlen)
|
|||
} /* while */
|
||||
|
||||
assert(low == high);
|
||||
if (stricmp(str, opcodelist[low].name) == 0)
|
||||
if (strcasecmp(str, opcodelist[low].name) == 0)
|
||||
return low; /* found */
|
||||
return 0; /* not found, return special index */
|
||||
}
|
||||
|
@ -658,7 +658,7 @@ assemble(FILE * fout, FILE * fin)
|
|||
for (i = 2; i < (sizeof opcodelist / sizeof opcodelist[0]); i++)
|
||||
{
|
||||
assert(opcodelist[i].name != NULL);
|
||||
assert(stricmp(opcodelist[i].name, opcodelist[i - 1].name) > 0);
|
||||
assert(strcasecmp(opcodelist[i].name, opcodelist[i - 1].name) > 0);
|
||||
} /* for */
|
||||
#endif
|
||||
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
# define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#define getch getchar
|
||||
#define stricmp(a,b) strcasecmp(a,b)
|
||||
#define strnicmp(a,b,c) strncasecmp(a,b,c)
|
||||
|
||||
/* unix sep char- shoudl just assume this. */
|
||||
#define DIRECTORY_SEP_CHAR '/'
|
||||
#define DIRECTORY_SEP_STR "/"
|
||||
|
|
Loading…
Reference in New Issue