w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 2a4d1d83f8171e17da61b3dfd1fedb8cdcdb419e
parent 39a016b1dd687f746fba2b12ff3eff4e2fc1dd84
Author: ukai <ukai>
Date:   Mon, 10 Dec 2001 15:04:09 +0000

[w3m-dev 02647]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>

Diffstat:
MChangeLog | 6++++++
Metc.c | 37-------------------------------------
Mproto.h | 1-
3 files changed, 6 insertions(+), 38 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-11 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 02647] + * proto.h (getAnchor): deleted + * etc.c (getAnchor): deleted + 2001-12-09 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> * [w3m-dev 02646] Some code cleanups diff --git a/etc.c b/etc.c @@ -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) diff --git a/proto.h b/proto.h @@ -235,7 +235,6 @@ extern int columnPos(Line *line, int column); extern Line *lineSkip(Buffer *buf, Line *line, int offset, int last); extern Line *currentLineSkip(Buffer *buf, Line *line, int offset, int last); extern int gethtmlcmd(char **s); -extern char *getAnchor(char *arg, char **arg_return); extern Str checkType(Str s, Lineprop *oprop, #ifdef USE_ANSI_COLOR Linecolor *ocolor, int *check_color,