diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-02 16:49:04 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-02 16:49:04 +0100 |
commit | 9d19f7f844be74359b054d3bf395d6fdff5c20f8 (patch) | |
tree | 914bdb310b9d0db2a42a17809911a0bc93e39f26 /util.h | |
parent | 99d1766681b543dc0e2e50138c473fbcabd1c809 (diff) |
improve compat
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2,6 +2,7 @@ #include "compat.h" #endif +#include <stdio.h> #include <time.h> #define ISUTF8(c) (((c) & 0xc0) != 0x80) @@ -20,10 +21,9 @@ enum { FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle, FieldLink, FieldContent, FieldContentType, FieldId, FieldAuthor, FieldFeedType, FieldFeedName, FieldFeedUrl, FieldBaseSiteUrl, FieldLast }; -void feedsfree(struct feed *f); -unsigned int parseline(char **line, size_t *size, char **fields, - unsigned int maxfields, int separator, FILE *fp); -void printfeednameid(const char *s, FILE *fp); -void printhtmlencoded(const char *s, FILE *fp); -void printlink(const char *link, const char *baseurl, FILE *fp); -void printutf8pad(FILE *fp, const char *s, size_t len, int pad); +void feedsfree(struct feed *); +unsigned int parseline(char **, size_t *, char **, unsigned int, int, FILE *); +void printfeednameid(const char *, FILE *); +void printhtmlencoded(const char *, FILE *); +void printlink(const char *, const char *, FILE *); +void printutf8pad(FILE *, const char *, size_t, int); |