fuck windows-isms

SVN revision: 14179
This commit is contained in:
tsauerbeck 2005-04-13 19:45:19 +00:00 committed by tsauerbeck
parent ab64c38407
commit ad337df8cf
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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 "/"