Tree for my work on http://tools.suckless.org/quark/
f4db83f68c
The aim was to write quark without any mallocs. This was successful, but proved to be a bit ugly looking at how we construct data to be sent. Before this change, we had static buffers in each function that needed them and filled them up, possibly risking overflow. After that, we sent them off using our own function sendbuffer(), which in itself represented a buffering mechanism. Using dprintf, which is POSIX 2008, we can send things off directly, with no need for sendbuffer() or buffers for these things. This way we can factor out sendbuffer(), dropping a few more LOCs. Thanks Hiltjo for the suggestion! |
||
---|---|---|
arg.h | ||
config.def.h | ||
config.mk | ||
LICENSE | ||
Makefile | ||
quark.1 | ||
quark.c |