From 7f4a222ed088904ead39564d2c10d2946e1f72dd Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sat, 13 Sep 2008 13:44:56 +0200 Subject: [PATCH] Doc. system: No body to func. header Do not include body of inline functions even if the body is in the single line. --- build/doc-extract | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, $_, $_ ); -- 2.39.2