From 1422a9465482deeba1218755e1d4d0a02e6abc3f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 8 Feb 2010 10:02:49 -0500 Subject: talloc: Fix abi checks and ifdefs teach the abi check scripts to skip the DOXYGEN sections fix the header to use #ifdef DOXYGEN and not #if DOXYGEN --- lib/talloc/script/mksyms.awk | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'lib/talloc/script/mksyms.awk') diff --git a/lib/talloc/script/mksyms.awk b/lib/talloc/script/mksyms.awk index 8775faff3f..83497a7a06 100644 --- a/lib/talloc/script/mksyms.awk +++ b/lib/talloc/script/mksyms.awk @@ -8,6 +8,7 @@ # BEGIN { inheader=0; + indoxygen=0; } END { @@ -20,9 +21,15 @@ END { } next; } + if (indoxygen) { + if (match($0,"^#[ \t]*else[ \t]*.*$")) { + indoxygen = 0; + } + next; + } } -/^static/ || /^[ \t]*typedef/ || !/^[a-zA-Z\_]/ { +/^static/ || /^[ \t]*typedef/ || !/^[a-zA-Z\_\#]/ { next; } @@ -33,11 +40,16 @@ END { next; } +/^#[ \t]*ifdef[ \t]*DOXYGEN[ \t]*.*$/ { + indoxygen=1; + next; +} + # look for function headers: { gotstart = 0; if ($0 ~ /^[A-Za-z_][A-Za-z0-9_]+/) { - gotstart = 1; + gotstart = 1; } if(!gotstart) { next; -- cgit