]> git.wh0rd.org - fontconfig.git/commit
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)
commit18b8be363ca19666d8e90f8fc124c5b5e9ec15dc
treeda0730648e005e79dd805034f0b4c51caccb9df4
parent789702de6d5c0c766b08075d41c1ed5d9900b9e7
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