[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:
Fumitoshi UKAI
2002-12-24 17:20:45 +00:00
parent 456fdb4d45
commit 4ca69fff36
17 changed files with 105 additions and 65 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: parsetagx.c,v 1.11 2002/12/14 15:37:56 ukai Exp $ */
/* $Id: parsetagx.c,v 1.12 2002/12/24 17:20:48 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include "indep.h"
@@ -128,7 +128,8 @@ parse_tag(char **s, int internal)
}
while (*q && !IS_SPACE(*q) && !(tagname[0] != '/' && *q == '/') &&
*q != '>' && p - tagname < MAX_TAG_LEN - 1) {
*(p++) = tolower(*(q++));
*(p++) = TOLOWER(*q);
q++;
}
*p = '\0';
@@ -161,7 +162,8 @@ parse_tag(char **s, int internal)
p = attrname;
while (*q && *q != '=' && !IS_SPACE(*q) &&
*q != '>' && p - attrname < MAX_TAG_LEN - 1) {
*(p++) = tolower(*(q++));
*(p++) = TOLOWER(*q);
q++;
}
if (q == p) {
q++;