Recompile on Linux; Replace stricmp by strcasecmp.

This commit is contained in:
Renaud 2013-10-02 09:22:40 +08:00
parent 1d5cbe67a4
commit a3be4fea81
2 changed files with 6 additions and 5 deletions

View File

@ -170,7 +170,7 @@ isearch.o: isearch.c isearch.h basic.h buffer.h crypt.h line.h utf8.h \
line.o: line.c line.h utf8.h buffer.h crypt.h edef.h estruct.h retcode.h \
log.h window.h defines.h
lock.o: lock.c lock.h estruct.h retcode.h display.h edef.h buffer.h \
crypt.h line.h utf8.h input.h
crypt.h line.h utf8.h input.h pklock.h
log.o: log.c log.h retcode.h
main.o: main.c basic.h bind.h edef.h buffer.h crypt.h line.h utf8.h \
estruct.h retcode.h bindable.h display.h eval.h execute.h file.h input.h \
@ -181,7 +181,8 @@ names.o: names.c names.h basic.h bind.h edef.h buffer.h crypt.h line.h \
isearch.h region.h random.h search.h spawn.h window.h defines.h word.h
pklock.o: pklock.c pklock.h estruct.h retcode.h edef.h buffer.h crypt.h \
line.h utf8.h
posix.o: posix.c termio.h
posix.o: posix.c termio.h estruct.h retcode.h edef.h buffer.h crypt.h \
line.h utf8.h
random.o: random.c random.h basic.h buffer.h crypt.h line.h utf8.h \
display.h estruct.h retcode.h edef.h execute.h input.h log.h search.h \
terminal.h defines.h window.h
@ -195,7 +196,7 @@ spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \
terminal.h window.h
tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h edef.h \
buffer.h crypt.h line.h utf8.h termio.h
termio.o: termio.c termio.h estruct.h retcode.h utf8.h
termio.o: termio.c termio.h
utf8.o: utf8.c utf8.h
vmsvt.o: vmsvt.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \
utf8.h

View File

@ -947,7 +947,7 @@ int adjustmode(int kind, int global)
/* test it first against the colors we know */
for (i = 0; i < NCOLORS; i++) {
if( stricmp( cbuf, cname[ i]) == 0) {
if( strcasecmp( cbuf, cname[ i]) == 0) {
/* finding the match, we set the color */
#if COLOR
if( *cbuf >= 'A' && *cbuf <= 'Z') {
@ -976,7 +976,7 @@ int adjustmode(int kind, int global)
/* test it against the modes we know */
for (i = 0; i < NUMMODES; i++) {
if( stricmp( cbuf, modename[ i]) == 0) {
if( strcasecmp( cbuf, modename[ i]) == 0) {
/* finding a match, we process it */
if (kind == TRUE)
if (global)