summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed.c6
-rw-r--r--sfeed_curses.c2
-rw-r--r--sfeed_opml_import.c2
-rw-r--r--sfeed_web.c2
-rw-r--r--sfeed_xmlenc.c2
-rw-r--r--xml.c4
-rw-r--r--xml.h2
7 files changed, 10 insertions, 10 deletions
diff --git a/sfeed.c b/sfeed.c
index 888a575..cdd528c 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -724,8 +724,8 @@ xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl,
if (!ctx.tag.id)
return;
- /* content-type may be: Atom: text, xhtml, html or mime-type.
- MRSS (media:description): plain, html. */
+ /* content-type may be for Atom: text, xhtml, html or a mime-type.
+ for MRSS (media:description): plain, html. */
if (ISCONTENTTAG(ctx)) {
if (isattr(n, nl, STRP("type")))
string_append(&attrtype, v, vl);
@@ -1073,7 +1073,7 @@ main(int argc, char *argv[])
parser.xmltagstart = xmltagstart;
parser.xmltagstartparsed = xmltagstartparsed;
- /* NOTE: getnext is defined in xml.h for inline optimization */
+ /* NOTE: GETNEXT is defined in xml.h for inline optimization */
xml_parse(&parser);
checkfileerror(stdin, "<stdin>", 'r');
diff --git a/sfeed_curses.c b/sfeed_curses.c
index 95421fd..0434812 100644
--- a/sfeed_curses.c
+++ b/sfeed_curses.c
@@ -1875,7 +1875,7 @@ markread(struct pane *p, off_t from, off_t to, int isread)
_exit(status);
default:
/* waitpid() and block on process status change,
- fail if exit statuscode was unavailable or non-zero */
+ fail if the exit status code was unavailable or non-zero */
if (waitpid(pid, &status, 0) <= 0 || status)
break;
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index 9922133..ce33aac 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -96,7 +96,7 @@ main(void)
"# list of feeds to fetch:\n"
"feeds() {\n"
" # feed <name> <feedurl> [basesiteurl] [encoding]\n", stdout);
- /* NOTE: getnext is defined in xml.h for inline optimization */
+ /* NOTE: GETNEXT is defined in xml.h for inline optimization */
xml_parse(&parser);
fputs("}\n", stdout);
diff --git a/sfeed_web.c b/sfeed_web.c
index 0082f2d..e25e91c 100644
--- a/sfeed_web.c
+++ b/sfeed_web.c
@@ -132,7 +132,7 @@ main(int argc, char *argv[])
parser.xmltagstart = xmltagstart;
parser.xmltagstartparsed = xmltagstartparsed;
- /* NOTE: getnext is defined in xml.h for inline optimization */
+ /* NOTE: GETNEXT is defined in xml.h for inline optimization */
xml_parse(&parser);
checkfileerror(stdin, "<stdin>", 'r');
diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c
index 7fc93ae..461c047 100644
--- a/sfeed_xmlenc.c
+++ b/sfeed_xmlenc.c
@@ -52,7 +52,7 @@ main(void)
parser.xmlattrend = xmlattrend;
parser.xmltagstart = xmltagstart;
- /* NOTE: getnext is defined in xml.h for inline optimization */
+ /* NOTE: GETNEXT is defined in xml.h for inline optimization */
xml_parse(&parser);
checkfileerror(stdin, "<stdin>", 'r');
diff --git a/xml.c b/xml.c
index a82053e..1524d1f 100644
--- a/xml.c
+++ b/xml.c
@@ -317,7 +317,7 @@ xml_parse(XMLParser *x)
x->taglen = 1;
x->isshorttag = isend = 0;
- /* treat processing instruction as shorttag, don't strip "?" prefix. */
+ /* treat processing instruction as short tag, don't strip "?" prefix. */
if (c == '?') {
x->isshorttag = 1;
} else if (c == '/') {
@@ -346,7 +346,7 @@ xml_parse(XMLParser *x)
if (x->xmltagstartparsed)
x->xmltagstartparsed(x, x->tag, x->taglen, x->isshorttag);
}
- /* call tagend for shortform or processing instruction */
+ /* call tagend for short tag or processing instruction */
if (x->isshorttag) {
if (x->xmltagend)
x->xmltagend(x, x->tag, x->taglen, x->isshorttag);
diff --git a/xml.h b/xml.h
index 122726c..6f3cf71 100644
--- 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 shortform ? <tag /> */
+ /* current tag is a short tag ? <tag /> */
int isshorttag;
/* current attribute name */
char name[1024];