From e718702d1281d1e92d162d9846081364ebb5f4df Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 23 Jan 2003 18:01:01 +0000 Subject: * etc.c (next_status): after = is R_ST_VALUE R_ST_VALUE > => R_ST_NORMAL R_ST_VALUE SP => R_ST_TAG (read_token): R_ST_VALUE (correct_irrtag): R_ST_VALUE * rm.h (R_ST_VALUE): added (ST_IS_REAL_TAG): rewrite (ST_IS_COMMENT): deleted (ST_IS_TAG): deleted * parsetagx.c (parse_tag): skip too long tagname skip too long attrname if attrvalue has quote char, need reconstruct if unknown attr, need reconstruct * table.c (visible_length): R_ST_VALUE From: Hironori SAKAMOTO --- fm.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fm.h') diff --git a/fm.h b/fm.h index 91c7897..a4c135c 100644 --- a/fm.h +++ b/fm.h @@ -1,4 +1,4 @@ -/* $Id: fm.h,v 1.105 2003/01/22 16:16:20 ukai Exp $ */ +/* $Id: fm.h,v 1.106 2003/01/23 18:01:06 ukai Exp $ */ /* * w3m: WWW wo Miru utility * @@ -623,10 +623,9 @@ struct readbuffer { #define R_ST_NCMNT2 12 /* comment -- */ #define R_ST_NCMNT3 13 /* comment -- space */ #define R_ST_IRRTAG 14 /* within irregular tag */ +#define R_ST_VALUE 15 /* within tag attribule value */ -#define ST_IS_REAL_TAG(s) ((s)==R_ST_TAG||(s)==R_ST_TAG0||(s)==R_ST_EQL) -#define ST_IS_COMMENT(s) ((s)>=R_ST_CMNT1) -#define ST_IS_TAG(s) ((s)!=R_ST_NORMAL&&(s)!=R_ST_AMP&&!ST_IS_COMMENT(s)&&(s)!=R_ST_EOL) +#define ST_IS_REAL_TAG(s) ((s)==R_ST_TAG||(s)==R_ST_TAG0||(s)==R_ST_EQL||(s)==R_ST_VALUE) /* is this '<' really means the beginning of a tag? */ #define REALLY_THE_BEGINNING_OF_A_TAG(p) \ -- cgit v1.2.3