aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore
diff options
context:
space:
mode:
authorTravis Howell2009-02-16 09:17:49 +0000
committerTravis Howell2009-02-16 09:17:49 +0000
commit2d0a897d16d25f10035e97a79ceab4d6036e5c60 (patch)
tree03ab24646b7a1c0fa38494305216dc71e3a81c21 /engines/sci/scicore
parent7a3c7c1e9a85cb83c3149503adb1e8247986bc7d (diff)
downloadscummvm-rg350-2d0a897d16d25f10035e97a79ceab4d6036e5c60.tar.gz
scummvm-rg350-2d0a897d16d25f10035e97a79ceab4d6036e5c60.tar.bz2
scummvm-rg350-2d0a897d16d25f10035e97a79ceab4d6036e5c60.zip
Replace strcasecmp with scumm_stricmp.
svn-id: r38356
Diffstat (limited to 'engines/sci/scicore')
-rw-r--r--engines/sci/scicore/tools.cpp2
-rw-r--r--engines/sci/scicore/vocab.cpp2
-rw-r--r--engines/sci/scicore/vocab_debug.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/scicore/tools.cpp b/engines/sci/scicore/tools.cpp
index 667f062cd6..2179713720 100644
--- a/engines/sci/scicore/tools.cpp
+++ b/engines/sci/scicore/tools.cpp
@@ -608,7 +608,7 @@ _fcaseseek(const char *fname, sci_dir_t *dir)
name = sci_find_first(dir, buf);
while (name && !retval) {
- if (!strcasecmp(fname, name))
+ if (!scumm_stricmp(fname, name))
retval = name;
else
name = sci_find_next(dir);
diff --git a/engines/sci/scicore/vocab.cpp b/engines/sci/scicore/vocab.cpp
index 87ee3cb434..acea245991 100644
--- a/engines/sci/scicore/vocab.cpp
+++ b/engines/sci/scicore/vocab.cpp
@@ -62,7 +62,7 @@ const char *class_names[] = {"", /* These strange names were taken
int
_vocab_cmp_words(const void *word1, const void *word2) {
- return strcasecmp((*((word_t **) word1))->word, (*((word_t **) word2))->word);
+ return scumm_stricmp((*((word_t **) word1))->word, (*((word_t **) word2))->word);
}
diff --git a/engines/sci/scicore/vocab_debug.cpp b/engines/sci/scicore/vocab_debug.cpp
index 8e3b1afc8d..2051bf1f33 100644
--- a/engines/sci/scicore/vocab_debug.cpp
+++ b/engines/sci/scicore/vocab_debug.cpp
@@ -199,7 +199,7 @@ int
vocabulary_lookup_sname(char **snames_list, char *sname) {
int pos = 0;
while (snames_list[pos]) {
- if (!strcasecmp(sname, snames_list[pos])) return pos;
+ if (!scumm_stricmp(sname, snames_list[pos])) return pos;
pos++;
}