summaryrefslogtreecommitdiff
path: root/util.h
AgeCommit message (Collapse)Author
2017-05-11Move the #defines within the #include guardsParide Legovini
2017-05-11Fix compilation on GNU Hurd systemsParide Legovini
On GNU Hurd systems PIPE_BUF and PATH_MAX are not defined, and the compilation fails. This patch defines them if they aren't.
2017-04-09text: add mem{r,}chr(3) based byte search functionsMarc André Tanner
These are generally implemented efficiently in libc. While memrchr(3) is non-standard, it is a common extension. If it is not available, we use a simple C implementation from musl.
2017-02-20util: add overflow safe unsigned addition functionMarc André Tanner
2014-09-10Add comments where appropriateMarc André Tanner
2014-09-09Rename vis.[ch] to editor.[ch] and main.c to vis.cMarc André Tanner
2014-08-23Share common macros in util.hMarc André Tanner