diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-24 17:20:45 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-24 17:20:45 +0000 |
commit | 4ca69fff36ed4c9013f8ba74eeb47fea71b7121b (patch) | |
tree | f20970c6c6c73feb448ebdcd663792a4e8d49f96 /rc.c | |
parent | mimehead.c (decodeWord): don't use toupper() (requires ctype.h) (diff) | |
download | w3m-4ca69fff36ed4c9013f8ba74eeb47fea71b7121b.tar.gz w3m-4ca69fff36ed4c9013f8ba74eeb47fea71b7121b.zip |
[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>
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.72 2002/12/18 16:42:31 ukai Exp $ */ +/* $Id: rc.c,v 1.73 2002/12/24 17:20:48 ukai Exp $ */ /* * Initialization file etc. */ @@ -991,18 +991,18 @@ str_to_bool(char *value, int old) { if (value == NULL) return 1; - switch (tolower(*value)) { + switch (TOLOWER(*value)) { case '0': case 'f': /* false */ case 'n': /* no */ case 'u': /* undef */ return 0; case 'o': - if (tolower(value[1]) == 'f') /* off */ + if (TOLOWER(value[1]) == 'f') /* off */ return 0; return 1; /* on */ case 't': - if (tolower(value[1]) == 'o') /* toggle */ + if (TOLOWER(value[1]) == 'o') /* toggle */ return !old; return 1; /* true */ case '!': @@ -1019,7 +1019,7 @@ str_to_color(char *value) { if (value == NULL) return 8; /* terminal */ - switch (tolower(*value)) { + switch (TOLOWER(*value)) { case '0': return 0; /* black */ case '1': |