sfeed

RSS and Atom parser
git clone git://git.codemadness.org/sfeed
Log | Files | Refs | README | LICENSE

commit b6731ae35b125963a37dcaacaf76169992ad1f67
parent 59ba2ed29bcbe67de6e9ee1e7fb18744f7490c22
Author: Hiltjo Posthuma <[email protected]>
Date:   Wed, 20 Jul 2022 20:37:14  0200

slightly improve some comments

Diffstat:
Msfeed.c | 4 --
Msfeed_curses.c | 2 -
Msfeed_gopher.c | 2 -
Msfeed_mbox.c | 4 --
Mxml.h | 2 -
5 files changed, 7 insertions( ), 7 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -530,7 530,7 @@ gettzoffset(const char *s) ; if (i != 3) return 0; - /* compare tz and adjust offset relative to UTC */ /* compare timezone and adjust offset relative to UTC */ for (i = 0; i < sizeof(tzones) / sizeof(*tzones); i ) { if (!memcmp(s, tzones[i].name, 3)) return tzones[i].offhour; @@ -978,7 978,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort) } else if (ctx.tag.id && istag(ctx.tag.name, ctx.tag.len, t, tl)) { /* matched tag end: close it */ /* copy also to the link field if the attribute isPermaLink="true" - and it is not set by a tag with higher prio. */ and it is not set by a tag with higher priority. */ if (ctx.tag.id == RSSTagGuidPermalinkTrue && ctx.field && ctx.tag.id > ctx.fields[FeedFieldLink].tagid) { string_clear(&ctx.fields[FeedFieldLink].str); diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -130,7 130,7 @@ struct item { }; struct urls { - char **items; /* array of urls */ char **items; /* array of URLs */ size_t len; /* amount of items */ size_t cap; /* available capacity */ }; diff --git a/sfeed_gopher.c b/sfeed_gopher.c @@ -65,7 65,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f) if (fields[FieldLink][0]) { itemtype = 'h'; - /* if it's a gopher URL then change it into a direntry */ /* if it's a gopher URL then change it into a DirEntity */ if (!strncmp(fields[FieldLink], "gopher://", 9) && uri_parse(fields[FieldLink], &u) != -1) { itemhost = u.host; diff --git a/sfeed_mbox.c b/sfeed_mbox.c @@ -22,8 22,8 @@ djb2(unsigned char *s, unsigned long long hash) } /* Unescape / decode fields printed by string_print_encoded() - * "\\" to "\", "\t", to TAB, "\n" to newline. Unrecognised escape sequences - * are ignored: "\z" etc. Mangle "From " in mboxrd style (always prefix >). */ * "\\" to "\", "\t", to TAB, "\n" to newline. Other escape sequences are * ignored: "\z" etc. Mangle "From " in mboxrd style (always prefix >). */ static void printcontent(const char *s, FILE *fp) { diff --git a/xml.h b/xml.h @@ -30,7 30,7 @@ typedef struct xmlparser { /* current tag */ char tag[1024]; size_t taglen; - /* current tag is in short form ? <tag /> */ /* current tag is in shortform ? <tag /> */ int isshorttag; /* current attribute name */ char name[1024];