RSSyl: Fix compilation on OS X.
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 27 May 2015 20:58:27 +0000 (22:58 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 27 May 2015 20:58:27 +0000 (22:58 +0200)
The enums declared in libfeed's parser*.h files sneaked through
to object built from old_feeds.c file, due to parser.h include.
For some reason, this bothers OS X compiler.
Since these enums were only used in their respective parser*.c file,
I just moved them there.

src/plugins/rssyl/libfeed/parser.c
src/plugins/rssyl/libfeed/parser.h
src/plugins/rssyl/libfeed/parser_atom10.c
src/plugins/rssyl/libfeed/parser_atom10.h
src/plugins/rssyl/libfeed/parser_rdf.c
src/plugins/rssyl/libfeed/parser_rdf.h

index 14f4a360cbaf07751349bcccabfb54c74e5c364b..64392456a421ce4dbd6d7c1eb9662e5123e53d99 100644 (file)
 
 #include "parser.h"
 
+enum {
+       FEED_TYPE_NONE,
+       FEED_TYPE_RDF,
+       FEED_TYPE_RSS_20,
+       FEED_TYPE_ATOM_03,
+       FEED_TYPE_ATOM_10,
+       FEED_TYPE_OPML
+} FeedTypes;
+
 static void _handler_set(XML_Parser parser, guint type)
 {
        if( parser == NULL )
index f8cbb9ae7cb3fd15b7791905e5a717e3f37fb0ee..02cd0e5033f79875b3a8013e2197cb30e6dec8f8 100644 (file)
@@ -32,14 +32,4 @@ gchar *feed_parser_get_attribute_value(const gchar **attr, const gchar *name);
 int feed_parser_unknown_encoding_handler(void *encdata, const XML_Char *name,
                XML_Encoding *info);
 
-
-enum {
-       FEED_TYPE_NONE,
-       FEED_TYPE_RDF,
-       FEED_TYPE_RSS_20,
-       FEED_TYPE_ATOM_03,
-       FEED_TYPE_ATOM_10,
-       FEED_TYPE_OPML
-} FeedTypes;
-
 #endif /* __PARSER_H */
index 9cf4ffa8ce5a5a46ef26506e80c4e1d6e58ed53b..8f9f4d6bb79ab10d3bb55fed4c8297efb771c6dc 100644 (file)
 #include "parser.h"
 #include "parser_atom10.h"
 
+enum {
+       FEED_LOC_ATOM10_NONE,
+       FEED_LOC_ATOM10_ENTRY,
+       FEED_LOC_ATOM10_AUTHOR,
+       FEED_LOC_ATOM10_SOURCE,
+       FEED_LOC_ATOM10_CONTENT
+} FeedAtom10Locations;
+
 void feed_parser_atom10_start(void *data, const gchar *el, const gchar **attr)
 {
        FeedParserCtx *ctx = (FeedParserCtx *)data;
index 85e95b4c9ba4f7fc6edfa8ce4b7142493398c7c7..0b094ab931f60b5f3d0e274f5fd55d25821df84c 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef __PARSER_ATOM03_H
-#define __PARSER_ATOM03_H
+#ifndef __PARSER_ATOM10_H
+#define __PARSER_ATOM10_H
 
 void feed_parser_atom10_start(void *data, const char *el, const char **attr);
 void feed_parser_atom10_end(void *data, const char *el);
 
-enum {
-       FEED_LOC_ATOM10_NONE,
-       FEED_LOC_ATOM10_ENTRY,
-       FEED_LOC_ATOM10_AUTHOR,
-       FEED_LOC_ATOM10_SOURCE,
-       FEED_LOC_ATOM10_CONTENT
-} FeedAtom10Locations;
-
-#endif /* __PARSER_ATOM03_H */
+#endif /* __PARSER_ATOM10_H */
index d514bf0b1431b67ca2e20e5f0e497b82371ab491..77e1df5e5b628a75689bd4d3af4bd654f34a5881 100644 (file)
 #include "date.h"
 #include "parser_rdf.h"
 
+enum {
+       FEED_LOC_RDF_NONE,
+       FEED_LOC_RDF_CHANNEL,
+       FEED_LOC_RDF_ITEM
+} FeedRdfLocations;
+
 void feed_parser_rdf_start(void *data, const gchar *el, const gchar **attr)
 {
        FeedParserCtx *ctx = (FeedParserCtx *)data;
index 1c3809fecf21a723794bd825819d9b824ea4a15b..66299cbe8ceb3ab3abc11ceadcaac4d32b378dda 100644 (file)
 void feed_parser_rdf_start(void *data, const char *el, const char **attr);
 void feed_parser_rdf_end(void *data, const char *el);
 
-enum {
-       FEED_LOC_RDF_NONE,
-       FEED_LOC_RDF_CHANNEL,
-       FEED_LOC_RDF_ITEM
-} FeedRdfLocations;
-
 #endif /* __PARSER_RDF_H */