]> mj.ucw.cz Git - libucw.git/commitdiff
Doc. system: No body to func. header
authorMichal Vaner <vorner@ucw.cz>
Sat, 13 Sep 2008 11:44:56 +0000 (13:44 +0200)
committerMichal Vaner <vorner@ucw.cz>
Sat, 13 Sep 2008 11:44:56 +0000 (13:44 +0200)
Do not include body of inline functions even if the body is in the
single line.

build/doc-extract

index bfa93da89e60c4354248cf51daf1a38f9b83211a..70de78e66dcc41e69741e0bd83f58f23f317b059 100755 (executable)
@@ -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, $_, $_ );