]> git.wh0rd.org - fontconfig.git/commitdiff
makealias: handle missing funcs better
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 19:19:57 +0000 (14:19 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 19:39:22 +0000 (14:39 -0500)
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>

No differences found