diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-10 15:04:09 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-10 15:04:09 +0000 |
commit | 3b7796acde15c7f087ae99390104fbbef8636b41 (patch) | |
tree | 05523e33cf2216fdd75eb646df4c459f56341ce7 /etc.c | |
parent | [w3m-dev 02646] (diff) | |
download | w3m-3b7796acde15c7f087ae99390104fbbef8636b41.tar.gz w3m-3b7796acde15c7f087ae99390104fbbef8636b41.zip |
[w3m-dev 02647]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | etc.c | 39 |
1 files changed, 1 insertions, 38 deletions
@@ -1,4 +1,4 @@ -/* $Id: etc.c,v 1.10 2001/12/09 13:59:04 ukai Exp $ */ +/* $Id: etc.c,v 1.11 2001/12/10 15:04:09 ukai Exp $ */ #include "fm.h" #include <pwd.h> #include "myctype.h" @@ -226,43 +226,6 @@ searchAnchorArg(char **arg) return p; } -char * -getAnchor(char *arg, char **arg_return) -{ - char *p; - char buf[LINELEN]; - - if (arg_is(arg, "name")) { - arg += 4; - while (*arg && (*arg == ' ' || *arg == '\t')) - arg++; - if (*arg != '=') - return NULL; - arg++; - while (*arg && (*arg == ' ' || *arg == '\t')) - arg++; - p = searchAnchorArg(&arg); - buf[0] = '#'; - strncpy(&buf[1], arg, p - arg); - if (arg_return) - *arg_return = p; - return allocStr(buf, p - arg + 1); - } - while (*arg && *arg != '=') - arg++; - if (*arg == '\0') - return NULL; - arg++; - while (*arg && (*arg == ' ' || *arg == '\t')) - arg++; - p = searchAnchorArg(&arg); - if (arg_return) - *arg_return = p; - if (p == arg) - return allocStr(" ", 1); - return allocStr(arg, p - arg); -} - #ifdef USE_ANSI_COLOR static int parse_ansi_color(char **str, Lineprop *effect, Linecolor *color) |