From: Michal Vaner Date: Fri, 5 Sep 2008 18:33:30 +0000 (+0200) Subject: Documentation: keep ; at the end of functions X-Git-Tag: holmes-import~340 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=65ad24e665880b1a417763e4c852c62d39e79a65;p=libucw.git Documentation: keep ; at the end of functions And replace { at the end of inline functions with ; --- diff --git a/build/extract-doc.pl b/build/extract-doc.pl index 7eb28354..b4ea259c 100755 --- a/build/extract-doc.pl +++ b/build/extract-doc.pl @@ -81,7 +81,8 @@ sub process( $ ) { s/^\s*\s?//; s/\/\/.*//; s/\/\*.*?\*\///gs; - s/[;{].*//; + s/([;{]).*/";"x length( $1 )/e; + s/\)\s*;$/);/; formatNote( $_, $buff ); $head = undef; $buff = undef; @@ -99,7 +100,8 @@ sub process( $ ) { if( $head =~ /\(/ || $head !~ /{/ ) { $head =~ s/^\s*//; $head =~ s/\/\*.*?\*\///gs; - $head =~ s/[;{].*//; + $head =~ s/([;{]).*/";"x length( $1 )/e; + $head =~ s/\)\s*;$/);/; formatNote( $head, $buff ); $head = undef; $buff = undef;