]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commit
Use static list of descriptors to reduce mallocs.
authorSimon Ruderich <simon@ruderich.org>
Thu, 6 Jun 2013 23:27:58 +0000 (01:27 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 6 Jun 2013 23:27:58 +0000 (01:27 +0200)
commitc2097785e752fee94c5c9ef46f03b8312694251a
tree0f16d725ef9c6ebb48253bcae8c7cf361d052f12
parent5c8b5233fbadc8963cef28d851599bf4c34d271a
Use static list of descriptors to reduce mallocs.

Only if file descriptors with a value > 255 occur, the list
implementation is used.
src/coloredstderr.c
src/constants.h
src/trackfds.h
tests/example.c
tests/example.expected