commit 46c740508888a1ec6608fda78150401e70d051e8
parent 914516209ddab8459ef99bd12ad211dab9b2a26d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 2 Oct 2015 17:27:20 +0200
update README, fix some typos and wording
Diffstat:
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/README b/README
@@ -48,12 +48,12 @@ HTML view with frames and content, copy style.css for a default style:
mkdir -p "$HOME/.sfeed/frames"
cd "$HOME/.sfeed/frames" && sfeed_frames $HOME/.sfeed/feeds/*
-
To automatically update your feeds periodically and format them in a view you
like you can make a simple wrapper script and add it as a cronjob.
-Because curl is used by default most protocols are supported and for example
-proxy settings ($http_proxy environment variable) are respected.
+Most protocols are supported because curl is used by default, also possible
+proxy settings from the environment ($http_proxy environment variable) are
+respected.
See the section "Usage and examples" below and the man-pages for more
information how to use sfeed and the additional tools.
@@ -86,6 +86,7 @@ Platforms tested
- Linux (glibc+gcc, musl-gcc, clang).
- OpenBSD
+- NetBSD
- Windows (cygwin gcc, mingw).
@@ -141,7 +142,7 @@ are escaped with '\', so: '\n', '\t', and '\\'. Other whitespace characters
except space are removed. Control characters are removed.
The timestamp field is converted to a UNIX timestamp. The timestamp is also
-added as a formatted text text field.
+added as a formatted text field.
The order and format of the fields are:
@@ -234,7 +235,6 @@ File sfeed_archive.c:
#include <sys/types.h>
#include <err.h>
- #include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed.c b/sfeed.c
@@ -14,7 +14,7 @@
#define ISINCONTENT(ctx) ((ctx).iscontent && !((ctx).iscontenttag))
#define ISCONTENTTAG(ctx) (!((ctx).iscontent) && (ctx).iscontenttag)
-/* string and size */
+/* string and byte-length */
#define STRP(s) s,sizeof(s)-1
enum FeedType {
@@ -39,7 +39,7 @@ typedef struct string {
} String;
/* NOTE: the order of these fields (content, date, author) indicate the
- * priority to used them, from low to high. */
+ * priority to use them, from least important to high. */
enum TagId {
TagUnknown = 0,
/* RSS */
@@ -579,7 +579,7 @@ xml_handler_data_entity(XMLParser *p, const char *data, size_t datalen)
return;
/* try to translate entity, else just pass as data to
- * xml_data_handler */
+ * xml_data_handler. */
len = xml_entitytostr(data, buffer, sizeof(buffer));
/* this should never happen (buffer too small) */
if (len < 0)