From: Michal Vaner Date: Sat, 13 Sep 2008 11:44:56 +0000 (+0200) Subject: Doc. system: No body to func. header X-Git-Tag: holmes-import~301 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7f4a222ed088904ead39564d2c10d2946e1f72dd;p=libucw.git Doc. system: No body to func. header Do not include body of inline functions even if the body is in the single line. --- diff --git a/build/doc-extract b/build/doc-extract index bfa93da8..70de78e6 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -35,7 +35,7 @@ sub detect( $ ) { return( '', 0, $_, $_ ); } return( 'def', 0, $1, $_ ) if( /#define\s+(\w+)/ ); - return( 'fun', 1, $1, $_ ) if( /(\w+)\(.*\)/ ); + return( 'fun', 1, $2, $1 ) if( /^(.*?(\w+)\([^{]*\)[^{]*)/ ); return( 'var', 1, $1, $_ ) if( /\s(\w+);/ ); warn( "Unknown statement $_\n" ); return( '', 0, $_, $_ );