summaryrefslogtreecommitdiff
path: root/util.c
AgeCommit message (Collapse)Author
2015-08-02util: simplify parseline() and check t for strtotime().Hiltjo Posthuma
2015-08-02refactor print, decodefield into xmlencodeHiltjo Posthuma
... put specific formatting-logic per program (printcontent()).
2015-07-31update some commentsHiltjo Posthuma
2015-07-31update and improve documentation (WIP)Hiltjo Posthuma
2015-07-31Various improvementsHiltjo Posthuma
- Only escape characters in "content" field, these can contain newlines. - Trim newlines and tabs, etc from the title, id and author fields. - Make decodefield, xmlencode functions easier to "chain" without allocatting new buffers. - Move printutf8pad from util (only used by sfeed_plain) to sfeed_plain. - Update README, still need to update the man-page and improve the documentation in general. - Code cleanup.
2015-07-29improve includes (dont include headers in .h), fix build on LinuxHiltjo Posthuma
2015-07-28improve code-style and consistencyHiltjo Posthuma
2015-07-28util, absuri: check truncation of more casesHiltjo Posthuma
2015-07-28util: rewrite uri parserHiltjo Posthuma
- don't print directly but use an internal buffer (also better for testing). - encode uri when printing (security). - add some comments.
2015-06-21improvementsHiltjo Posthuma
2015-06-21util: improve printxmlencoded, cleanupHiltjo Posthuma
2015-06-21util: fix parseline crashHiltjo Posthuma
2015-06-21improve printlink, escape charactersHiltjo Posthuma
2015-06-21add xbasename for filename to feednameHiltjo Posthuma
2015-05-24sfeed_frames and util cleanupHiltjo Posthuma
- remove xerr and xerrx, assume the OS closes and flushes file descriptors on OS process exit. - move esnprintf, printcontent to util.
2015-05-16util: parseline can return error, unsigned int -> intHiltjo Posthuma
2015-01-03time fixesHiltjo Posthuma
2015-01-02trim stringHiltjo Posthuma
2015-01-02Makefile: fix prerequisite rulesHiltjo Posthuma
2015-01-02cleanupHiltjo Posthuma
- dont free at end (not needed in our case). - use 0 and 1 instead of EXIT_SUCCESS, EXIT_FAILURE. - use err (from err.h) instead of custom die().
2015-01-02compat: separate compat stuff, strlcpy atmHiltjo Posthuma
2014-11-11code style, use actual column width of charHiltjo Posthuma
2014-11-11move printutf8padded to utilHiltjo Posthuma
2014-06-27small fixesHiltjo Posthuma
reorder static -> public xml functions. Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-05-13cleanup, tested with tccHiltjo Posthuma
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-05-13util: use standard getline() function to get linesHiltjo Posthuma
this is standard since POSIX 200809L Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-09cleanup, remove javascript hotkeyHiltjo Posthuma
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-02sfeed: improve parsetime(), cleanupHiltjo Posthuma
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-31new versionHiltjo Posthuma
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>