[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:
@@ -1,7 +1,7 @@
|
||||
/* $Id: mktable.c,v 1.10 2002/11/12 12:41:58 ukai Exp $ */
|
||||
/* $Id: mktable.c,v 1.11 2002/12/24 17:20:47 ukai Exp $ */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include "myctype.h"
|
||||
#include "config.h"
|
||||
#include "hash.h"
|
||||
#include "Str.h"
|
||||
@@ -74,11 +74,11 @@ main(int argc, char *argv[], char **envp)
|
||||
Strremovetrailingspaces(s);
|
||||
name = Strnew();
|
||||
for (p = s->ptr; *p; p++) {
|
||||
if (isspace(*p))
|
||||
if (IS_SPACE(*p))
|
||||
break;
|
||||
Strcat_char(name, *p);
|
||||
}
|
||||
while (*p && isspace(*p))
|
||||
while (*p && IS_SPACE(*p))
|
||||
p++;
|
||||
putHash_ss(hash, name->ptr, p);
|
||||
n++;
|
||||
|
Reference in New Issue
Block a user