[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:
8
file.c
8
file.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: file.c,v 1.168 2002/12/21 16:19:33 ukai Exp $ */
|
||||
/* $Id: file.c,v 1.169 2002/12/24 17:20:46 ukai Exp $ */
|
||||
#include "fm.h"
|
||||
#include <sys/types.h>
|
||||
#include "myctype.h"
|
||||
@@ -826,7 +826,7 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu)
|
||||
Strcat_charp(msg, " (y/n)");
|
||||
ans = inputAnswer(msg->ptr);
|
||||
}
|
||||
if (ans == NULL || tolower(*ans) != 'y' ||
|
||||
if (ans == NULL || TOLOWER(*ans) != 'y' ||
|
||||
(err =
|
||||
add_cookie(pu, name, value, expires, domain, path,
|
||||
flag | COO_OVERRIDE, comment, version,
|
||||
@@ -7661,7 +7661,7 @@ checkOverWrite(char *path)
|
||||
if (stat(path, &st) < 0)
|
||||
return 0;
|
||||
ans = inputAnswer("File exists. Overwrite? (y/n)");
|
||||
if (ans && tolower(*ans) == 'y')
|
||||
if (ans && TOLOWER(*ans) == 'y')
|
||||
return 0;
|
||||
else
|
||||
return -1;
|
||||
@@ -7871,7 +7871,7 @@ guess_charset(char *p)
|
||||
p += 2;
|
||||
while (*p != '\0') {
|
||||
if (*p != '-' && *p != '_')
|
||||
Strcat_char(c, tolower(*p));
|
||||
Strcat_char(c, TOLOWER(*p));
|
||||
p++;
|
||||
}
|
||||
if (strncmp(c->ptr, "euc", 3) == 0)
|
||||
|
Reference in New Issue
Block a user