sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 13d7b7a6df950c32162dcb157123bc47e1904b07
parent 8f54740326838579ecfab9ad5279c3f20740dcd7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 27 Feb 2019 19:18:40 +0100

atomlinktype make enum TagId instead of int

Diffstat:
Msfeed.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -178,7 +178,7 @@ static FeedContext ctx; static XMLParser parser; /* XML parser state */ static String atomlink; -static int atomlinktype; +static enum TagId atomlinktype; static int rssidpermalink; /* Unique tagid for parsed tag name. */ @@ -640,7 +640,7 @@ xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl, if (!vl || isattr(v, vl, STRP("alternate"))) atomlinktype = AtomTagLinkAlternate; else - atomlinktype = 0; + atomlinktype = TagUnknown; } else if (ctx.tagid == AtomTagLink && isattr(n, nl, STRP("href"))) { string_append(&atomlink, v, vl);