[w3m-dev 03595] tolower, toupper
* Str.c (Strlower): TOLOWER (Strupper): TOUPPER * backend.c: delete ctype.h * etc.c (gethtmlcmd): TOLOWER * file.c (readHeader): TOLOWER (checkOverWrite): TOLOWER (guess_charset): TOLOWER * ftp.c: delete ctype.h * indep.c (strcasecmp): TOLOWER (strncasecmp): TOLOWER (strcasematch): TOLOWER * istream.c: include myctype.h (ssl_get_certificate): TOLOWER * mailcap.c (mailcapMatch): TOLOWER * main.c (_quitfm): TOLOWER * menu.c (accesskey_menu): TOLOWER * mimehead.c: include myctype.h (decodeWord): TOUPPER * mktable.c: delete ctype.h, include myctype.h (main): IS_SPACE * myctype.h: delete ctype.h (TOLOWER): added (TOUPPER): added * parsetagx.c (parse_tag): TOLOWER * rc.c (str_to_bool): TOLOWER (str_to_color): TOLOWER * regex.c: delete ctype.h, include myctype.h (TOLOWER): added (TOUPPER): added (regmatch1): TOLOWER (matchWhich): TOLOWER, TOUPPER From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
12
indep.c
12
indep.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: indep.c,v 1.26 2002/12/09 15:24:04 ukai Exp $ */
|
||||
/* $Id: indep.c,v 1.27 2002/12/24 17:20:47 ukai Exp $ */
|
||||
#include "fm.h"
|
||||
#include <stdio.h>
|
||||
#include <pwd.h>
|
||||
@@ -228,13 +228,13 @@ strcasecmp(const char *s1, const char *s2)
|
||||
{
|
||||
int x;
|
||||
while (*s1) {
|
||||
x = tolower(*s1) - tolower(*s2);
|
||||
x = TOLOWER(*s1) - TOLOWER(*s2);
|
||||
if (x != 0)
|
||||
return x;
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
return -tolower(*s2);
|
||||
return -TOLOWER(*s2);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -242,14 +242,14 @@ strncasecmp(const char *s1, const char *s2, size_t n)
|
||||
{
|
||||
int x;
|
||||
while (*s1 && n) {
|
||||
x = tolower(*s1) - tolower(*s2);
|
||||
x = TOLOWER(*s1) - TOLOWER(*s2);
|
||||
if (x != 0)
|
||||
return x;
|
||||
s1++;
|
||||
s2++;
|
||||
n--;
|
||||
}
|
||||
return n ? -tolower(*s2) : 0;
|
||||
return n ? -TOLOWER(*s2) : 0;
|
||||
}
|
||||
#endif /* not HAVE_STRCASECMP */
|
||||
|
||||
@@ -282,7 +282,7 @@ strcasematch(char *s1, char *s2)
|
||||
while (*s1) {
|
||||
if (*s2 == '\0')
|
||||
return 1;
|
||||
x = tolower(*s1) - tolower(*s2);
|
||||
x = TOLOWER(*s1) - TOLOWER(*s2);
|
||||
if (x != 0)
|
||||
break;
|
||||
s1++;
|
||||
|
Reference in New Issue
Block a user