test-ctype: macrofy
commitc37c004b0e22806fd976abe5ece800656af2653e
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 1 Oct 2011 16:36:14 +0000 (1 18:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2011 18:43:04 +0000 (3 11:43 -0700)
tree945da1358dc363a4d87d167e62f39140a0299a26
parentf696543dad6c7ba27b0c4fab167a5687263a9ba0
test-ctype: macrofy

Rewrite test-ctype to use a global variable and a macro instead of
wrapper functions for each character class and complicated structs
with loops going through them.  The resulting code may be uglier,
but that's OK for a test program, and it's actually easier to read
and extend.  And much shorter.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
test-ctype.c