diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | etc.c | 39 | ||||
-rw-r--r-- | proto.h | 3 |
3 files changed, 9 insertions, 41 deletions
@@ -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 @@ -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 $ @@ -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) @@ -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, |