diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-03-31 22:46:58 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-03-31 22:46:58 +0200 |
commit | d8b0c45812890670943becd45383f75d57056e52 (patch) | |
tree | 055375c12586e9f38f19ce5281f0a2c54de92226 /sfeed_opml_import.c | |
parent | 1fa71087c9d754b687d52059ee88ca82b45ec1eb (diff) |
new version
lots of things changed, but cleanup todo. changelog and consistent stream of small updates will come in the future.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r-- | sfeed_opml_import.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index dfa0f1f..22a1a9a 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -3,23 +3,23 @@ #include <stdlib.h> #include <string.h> #include <strings.h> + #include "xml.h" -#include "compat.h" -XMLParser parser; /* XML parser state */ -char feedurl[2048], feedname[2048], basesiteurl[2048]; +static XMLParser parser; /* XML parser state */ +static char feedurl[2048], feedname[2048], basesiteurl[2048]; -int +static int istag(const char *s1, const char *s2) { - return !xstrcasecmp(s1, s2); + return !strcasecmp(s1, s2); } -int +static int isattr(const char *s1, const char *s2) { - return !xstrcasecmp(s1, s2); + return !strcasecmp(s1, s2); } -void +static void xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen) { if(istag(tag, "outline")) { feedurl[0] = '\0'; @@ -28,7 +28,7 @@ xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen) { } } -void +static void xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen, int isshort) { if(istag(tag, "outline")) { @@ -39,7 +39,7 @@ xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen, } } -void +static void xml_handler_attr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen, const char *value, size_t valuelen) { if(istag(tag, "outline")) { |