From 3b7796acde15c7f087ae99390104fbbef8636b41 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 10 Dec 2001 15:04:09 +0000 Subject: [w3m-dev 02647] From: Kiyokazu SUTO --- ChangeLog | 8 +++++++- etc.c | 39 +-------------------------------------- proto.h | 3 +-- 3 files changed, 9 insertions(+), 41 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96a9522..1ee9ca8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-11 Fumitoshi UKAI + + * [w3m-dev 02647] + * proto.h (getAnchor): deleted + * etc.c (getAnchor): deleted + 2001-12-09 Kiyokazu SUTO * [w3m-dev 02646] Some code cleanups @@ -1118,4 +1124,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.118 2001/12/09 13:59:04 ukai Exp $ +$Id: ChangeLog,v 1.119 2001/12/10 15:04:09 ukai Exp $ diff --git a/etc.c b/etc.c index 48f62ea..77f7f71 100644 --- a/etc.c +++ b/etc.c @@ -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 #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) diff --git a/proto.h b/proto.h index f51e77a..0bdcb08 100644 --- a/proto.h +++ b/proto.h @@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.14 2001/12/09 13:59:04 ukai Exp $ */ +/* $Id: proto.h,v 1.15 2001/12/10 15:04:09 ukai Exp $ */ /* * This file was automatically generated by version 1.7 of cextract. * Manual editing not recommended. @@ -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, -- cgit v1.2.3