Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-08-22 | remove stdint.h include | Hiltjo Posthuma | |
the uint* types in XML are not exposed anymore. | |||
2018-03-11 | include <sys/types.h> for types size_t, ssize_t etc | Hiltjo Posthuma | |
This makes sure xml.c in particular can be compiled without further feature macros. | |||
2017-04-27 | improve gettag() | Hiltjo Posthuma | |
2017-04-27 | simplify pledge stub | Hiltjo Posthuma | |
2016-08-06 | add USE_PLEDGE, remove pledge dummy function | Hiltjo Posthuma | |
2016-08-06 | gettzoffset: simplify, default is 0 so remove UTC zones to check | Hiltjo Posthuma | |
2016-04-18 | simplify sfeed(5) format, remove feedtype also | Hiltjo Posthuma | |
Remove type of feed per item, it is not that interesting. sfeed(1) can parse both RSS and Atom feeds. | |||
2016-04-10 | absuri, encodeuri: make encodeuri static, change argument order | Hiltjo Posthuma | |
2016-04-10 | strtotime: improve | Hiltjo Posthuma | |
use long long: atleast 32-bit, but now time_t (real) to 32-bit or 64-bit is supported. Long long is C99 though, but that is fine. check errno, it can have ERANGE. | |||
2016-04-10 | small style fix | Hiltjo Posthuma | |
2016-04-03 | fix warning: return early, fixes bogus end NULL dereference warning | Hiltjo Posthuma | |
2016-04-03 | just initialize to zero, no need for memset | Hiltjo Posthuma | |
2016-03-29 | add time parsing to sfeed itself, remove time field | Hiltjo Posthuma | |
- less overhead (we only need GMT time) so no setenv("TZ", ...) tzset() crap. - timezone format (for example %z in strptime) is non-standard, this will add some lines of code and some complexity to our code though, but the trade-off is worth it imho. | |||
2016-03-27 | time experiment | Hiltjo Posthuma | |
2016-03-21 | check for tagid == TagUnknown, bit more clear | Hiltjo Posthuma | |
2016-03-20 | code cleanup: put table of parsed tagid at top (near reverse table) | Hiltjo Posthuma | |
2016-03-20 | fix crash with repeated <link href=""> tags in Atom feeds | Hiltjo Posthuma | |
add some detail to the comments | |||
2016-03-19 | don't use temporary pointer for realloc, it will exit on error | Hiltjo Posthuma | |
2016-03-10 | remove cast of unused variables | Hiltjo Posthuma | |
2016-03-04 | remove optimization with no effect, makes the code cleaner | Hiltjo Posthuma | |
2016-03-02 | sfeed: no need to call strlen, we know the length already | Hiltjo Posthuma | |
2016-02-27 | various improvements | Hiltjo Posthuma | |
- pledge tools and add define to enable it on platforms that support it, currently only OpenBSD 5.9+ - separate getline and parseline functionality. - use murmur3 hash instead of jenkins1: faster and less collisions. - make some error messages a bit more clear, for example with path truncation. - some small cleanups, move printutf8pad to util. | |||
2016-02-27 | check <author><name> tag case-insensitively, just like the rest | Hiltjo Posthuma | |
2016-02-27 | consistency: check snprintf result == -1 | Hiltjo Posthuma | |
2016-02-27 | remove some unneeded checks | Hiltjo Posthuma | |
2016-01-31 | Revert "sfeed: realloc, faster near pow 2 bufsiz" | Hiltjo Posthuma | |
This reverts commit 5e43bd658e578ced54f6065e95f6efb4892e114c. It is a neat bit trick, but it doesn't matter much in thiscase and it's less readable and possibly less portable. | |||
2016-01-31 | sfeed: realloc, faster near pow 2 bufsiz | Hiltjo Posthuma | |
2016-01-31 | code-style | Hiltjo Posthuma | |
2015-10-04 | sfeed: fix ctype functions again | Hiltjo Posthuma | |
2015-10-02 | sfeed: fix escape of backslash, simplify | Hiltjo Posthuma | |
2015-10-02 | dont used deprecated timegm, use mktime with TZ set to UTC | Hiltjo Posthuma | |
this also makes it compile on NetBSD | |||
2015-10-02 | update README, fix some typos and wording | Hiltjo Posthuma | |
2015-08-23 | sfeed: use separate enum field for content fields | Hiltjo Posthuma | |
2015-08-23 | simplify unknown or less priority tag case, fix gettag bug (wrong sort order) | Hiltjo Posthuma | |
2015-08-23 | simplify field map code (add list tagid -> field. | Hiltjo Posthuma | |
also: - parse tag media:description for RSS. - be more strict about using the order of fields, this is more consistent now. - remove buffer_init: don't allocate buffers on start. - realloc, be slightly more aggresive with memory allocating: initial buffer size 16 to 64 bytes. | |||
2015-08-22 | xml: simplify XML reader | Hiltjo Posthuma | |
2015-08-22 | sfeed: use <title>, it is required, never use media:title | Hiltjo Posthuma | |
2015-08-22 | use HOST_NAME_MAX for hostname | Hiltjo Posthuma | |
2015-08-21 | sfeed: xml_entitytostr returns ssize_t | Hiltjo Posthuma | |
2015-08-16 | code-style, wrap some lines, etc | Hiltjo Posthuma | |
2015-08-14 | minor code-style improvements | Hiltjo Posthuma | |
2015-08-14 | xml: separate reader context from parser | Hiltjo Posthuma | |
also: - rename xmlparser_ prefix to xml_. - make xml_parse public, this allows a custom reader like a direct mmap, see: XMLParser.getnext and (optionall) XMLParser.getnext_data. - improve the README text. | |||
2015-08-08 | Revert "sfeed: set TZ=UTC at start, use mktime() not the deprecated timegm()." | Hiltjo Posthuma | |
Some libc implementations like musl provide a heavy optimized version of timeg() which mktime() cannot provide. We use -D_BSD_SOURCE anyway (also for strlcpy, strlcat), so just keep using this for now. This reverts commit f7c579c3b8e77215d60f1948367221b738823585. | |||
2015-08-08 | sfeed: use snprintf -> strlcpy for some case | Hiltjo Posthuma | |
2015-08-07 | sfeed: set TZ=UTC at start, use mktime() not the deprecated timegm(). | Hiltjo Posthuma | |
... timegm() is also -D_BSD_SOURCE. | |||
2015-08-07 | sfeed: only handle tags in HTML content, strip tags from type "text" | Hiltjo Posthuma | |
2015-08-06 | sfeed: proper sort order for comparing tag | Hiltjo Posthuma | |
2015-08-06 | general cleanups | Hiltjo Posthuma | |
2015-08-06 | sfeed: fix, skip milliseconds for: %Y-%m-%dT%H:%M:%S.000Z | Hiltjo Posthuma | |
2015-08-05 | sfeed: minor cleanup | Hiltjo Posthuma | |