htex

simple incorrect html parser
git clone git://git.relim.de/htex.git
Log | Files | Refs | README

commit b0b78096a20ab409a268ec2fb603ec99feccd2c7
parent 6d4549a5f6312fc8770145fdf9e99ecf3ff1cef1
Author: Robin <kroekerrobin@gmail.com>
Date:   Mon,  1 Apr 2024 17:32:25 +0200

Rename 'NUMERIC_SIGN' to 'NUMBER_SIGN'

Diffstat:
Mhtml.c | 2+-
Mhtml.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/html.c b/html.c @@ -696,7 +696,7 @@ struct tag *parseTag(char *text, size_t offset, enum state state, struct tag_lis endTag = stringCat(endTag, cpToChars(cp, ret)); break; case STATE_CHAR_REF: - if (cp == NUMERIC_SIGN) // hashtag + if (cp == NUMBER_SIGN) // hashtag { state = STATE_CHAR_REF_NUMERIC; break; diff --git a/html.h b/html.h @@ -11,7 +11,7 @@ #define SOLIDUS 0x2F #define EXCLAMATION_MARK 0x21 #define QUOTATION_MARK 0x22 -#define NUMERIC_SIGN 0x23 +#define NUMBER_SIGN 0x23 #define AMPERSAND 0x26 #define APOSTROPHE 0x27 #define GRAVE_ACCENT 0x60