slightly improve some comments
This commit is contained in:
parent
59ba2ed29b
commit
b6731ae35b
4
sfeed.c
4
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);
|
||||
|
|
|
@ -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 */
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue