]> git.wh0rd.org - fontconfig.git/commit
makealias: handle missing funcs better cleanup
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 19:19:57 +0000 (14:19 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 21 Feb 2012 19:15:58 +0000 (14:15 -0500)
commit3abf981542788310104bc96b9c9cf70dd39b361b
tree38563343bb635a3df28408f5179778d493749db4
parentd9c4462778a3d97b38e267dcdf68dfe22210ed8c
makealias: handle missing funcs better

When adding new functions, if the actual definition doesn't match the
header (say due to a typo), the regeneration of the internal headers
get confused and output bad cpp logic.  This causes gcc to barf due
to mismatched #ifdef/#endif.  Which is a pain to figure out due to
the sheer voulme of generated code.

So tweak the makealias script to detect this case and error out.
While we're here, improve the cpp output a bit to indent, include
comments, and merge similar ifdef blocks.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
src/makealias