[w3m-dev 02647]

From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2001-12-10 15:42:38 +00:00
parent 53901c289a
commit 31a9d9bffa
3 changed files with 10 additions and 37 deletions

35
etc.c
View File

@@ -1,4 +1,4 @@
/* $Id: etc.c,v 1.11 2001/12/10 15:04:09 ukai Exp $ */
/* $Id: etc.c,v 1.12 2001/12/10 15:42:38 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -71,20 +71,6 @@ strncasecmp(char *s1, char *s2, int n)
}
#endif /* not HAVE_STRCASECMP */
int
arg_is(char *str, char *tag)
{
while (*tag) {
if (tolower(*tag) != tolower(*str))
return 0;
tag++;
str++;
}
while (*str && (*str == ' ' || *str == '\t'))
str++;
return (*str == '=');
}
int
columnSkip(Buffer *buf, int offset)
{
@@ -207,25 +193,6 @@ gethtmlcmd(char **s)
return cmd;
}
static char *
searchAnchorArg(char **arg)
{
char *p;
if (**arg == '"') {
(*arg)++;
p = *arg;
while (*p && *p != '"')
p++;
}
else {
p = *arg;
while (*p && *p != '>' && *p != ' ' && *p != ',' &&
*p != '\t' && *p != '\n')
p++;
}
return p;
}
#ifdef USE_ANSI_COLOR
static int
parse_ansi_color(char **str, Lineprop *effect, Linecolor *color)