http11: cleanup some CPP macros
commitb57718fb7ed6f813f41b655ecbab1f6edd64ded0
authorEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:14:50 +0000 (21 11:14 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:16:34 +0000 (21 11:16 -0700)
tree1caa7f067057ccc43ac6c4ac5c85305c395acd1a
parentba916e542a46686185cb701e87a98a617c0f4078
http11: cleanup some CPP macros

Use the "do {} while (0)" idiom to wrap the macros we can
wrap to avoid having to worry about semi-colons when using
them.

Unfortunately DEF_MAX_LENGTH can't be wrapped with "do {} while
(0)".  But we do now correctly constify the strings
DEF_MAX_LENGTH creates and also make them static to reduce
visibility.
ext/unicorn/http11/http11.c