slightly improve some comments

This commit is contained in:
Hiltjo Posthuma 2022-07-20 20:37:14 +02:00
parent 59ba2ed29b
commit b6731ae35b
5 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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 */
};

View File

@ -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;

View File

@ -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)
{

2
xml.h
View File

@ -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];