sfeed

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

commit 25684ad7c11622b08bcb2532c40c62e1c10f74cf
parent c75f540ac59c5d6e3676878170c42d35b11d0c34
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 31 Jan 2016 15:39:14 +0100

code-style

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

diff --git a/sfeed.c b/sfeed.c @@ -59,9 +59,9 @@ enum TagId { }; typedef struct feedtag { - char *name; /* name of tag to match */ - size_t len; /* len of `name` */ - enum TagId id; /* unique ID */ + char *name; /* name of tag to match */ + size_t len; /* len of `name` */ + enum TagId id; /* unique ID */ } FeedTag; typedef struct field { @@ -76,13 +76,13 @@ enum { typedef struct feedcontext { String *field; /* current FeedItem field String */ - FeedField fields[FeedFieldLast]; /* data for current feed item */ + FeedField fields[FeedFieldLast]; /* data for current item */ enum TagId tagid; /* unique number for parsed tag */ int iscontent; /* in content data */ int iscontenttag; /* in content tag */ - int attrcount; - enum ContentType contenttype; /* content-type for current item. */ + enum ContentType contenttype; /* content-type for item */ enum FeedType feedtype; + int attrcount; /* count item HTML element attributes */ } FeedContext; static enum TagId gettag(enum FeedType, const char *, size_t);