diff options
author | Max Horn | 2009-02-16 09:53:34 +0000 |
---|---|---|
committer | Max Horn | 2009-02-16 09:53:34 +0000 |
commit | a27262621045b1770c3fc0e01c1a9b369a7df877 (patch) | |
tree | 0d9bca58ba16407aa043213240d15c4c8c2ca5f9 /engines/sci/engine/scriptconsole.cpp | |
parent | 954aa46b8ae1fa34ee2f3e134904de08f138a0af (diff) | |
download | scummvm-rg350-a27262621045b1770c3fc0e01c1a9b369a7df877.tar.gz scummvm-rg350-a27262621045b1770c3fc0e01c1a9b369a7df877.tar.bz2 scummvm-rg350-a27262621045b1770c3fc0e01c1a9b369a7df877.zip |
Replace strncasecmp by scumm_strnicmp
svn-id: r38362
Diffstat (limited to 'engines/sci/engine/scriptconsole.cpp')
-rw-r--r-- | engines/sci/engine/scriptconsole.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/engine/scriptconsole.cpp b/engines/sci/engine/scriptconsole.cpp index 614b8d55a8..7679040745 100644 --- a/engines/sci/engine/scriptconsole.cpp +++ b/engines/sci/engine/scriptconsole.cpp @@ -347,25 +347,25 @@ parse_reg_t(state_t *s, const char *str, reg_t *dest) { /* Returns 0 on success if (*str == '$') { /* Register */ rel_offsetting = 1; - if (!strncasecmp(str + 1, "PC", 2)) { + if (!scumm_strnicmp(str + 1, "PC", 2)) { *dest = s->execution_stack[s->execution_stack_pos].addr.pc; offsetting = str + 3; - } else if (!strncasecmp(str + 1, "P", 1)) { + } else if (!scumm_strnicmp(str + 1, "P", 1)) { *dest = s->execution_stack[s->execution_stack_pos].addr.pc; offsetting = str + 2; - } else if (!strncasecmp(str + 1, "PREV", 4)) { + } else if (!scumm_strnicmp(str + 1, "PREV", 4)) { *dest = s->r_prev; offsetting = str + 5; - } else if (!strncasecmp(str + 1, "ACC", 3)) { + } else if (!scumm_strnicmp(str + 1, "ACC", 3)) { *dest = s->r_acc; offsetting = str + 4; - } else if (!strncasecmp(str + 1, "A", 1)) { + } else if (!scumm_strnicmp(str + 1, "A", 1)) { *dest = s->r_acc; offsetting = str + 2; - } else if (!strncasecmp(str + 1, "OBJ", 3)) { + } else if (!scumm_strnicmp(str + 1, "OBJ", 3)) { *dest = s->execution_stack[s->execution_stack_pos].objp; offsetting = str + 4; - } else if (!strncasecmp(str + 1, "O", 1)) { + } else if (!scumm_strnicmp(str + 1, "O", 1)) { *dest = s->execution_stack[s->execution_stack_pos].objp; offsetting = str + 2; } else return 1; /* No matching register */ |