dump: Optimize indenting
authorPetri Lehtinen <petri@digip.org>
Thu, 3 Sep 2009 19:00:33 +0000 (22:00 +0300)
committerPetri Lehtinen <petri@digip.org>
Fri, 4 Sep 2009 06:52:40 +0000 (09:52 +0300)
commit9611780907cdb0154bd41232df7b2a41903a4ca5
treecdda0e715692a569563550b7bc5fae6a7cefdc66
parent93c5892bc3a8138ba44a626d0172563a714e5b64
dump: Optimize indenting

Don't alloca() a whitespace buffer and fill it with spaces in each
call to dump_indent. Instead, use a static whitespace buffer.

As a bonus, this saves the use of poorly portable alloca().
src/dump.c