summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-31 15:39:14 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-31 15:39:14 +0100
commit25684ad7c11622b08bcb2532c40c62e1c10f74cf (patch)
treeec23083f3181dd17bfed308b058be1e0fa5fef72
parentc75f540ac59c5d6e3676878170c42d35b11d0c34 (diff)
code-style
-rw-r--r--sfeed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sfeed.c b/sfeed.c
index 163ad90..a75d832 100644
--- 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);