X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Fdoc-extract;h=67fdd64cb070ab919fe7de69cc239c8bf39ccd2f;hb=eec6d2c37cbcbf9c350aa4ca80e5a316e5144087;hp=576ad022cd75e6c0fda264cf35aba80fd34020a0;hpb=92a567010327250d50e1bb7c4d255fb8065e245e;p=libucw.git diff --git a/build/doc-extract b/build/doc-extract index 576ad022..67fdd64c 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -22,7 +22,7 @@ if( defined $defdump ) { $hasdump = 1; } -# Function to guess type of stytement +# Function to guess type of statement sub detect( $ ) { ( $_ ) = @_; # typedef struct|enum { something } name; @@ -159,9 +159,12 @@ sub process( $$ ) { $struct = $sdepth = 1; } } elsif( ( $buff ) = ( $line =~ /\/\*\*\*(.*)\*\*\*\// ) ) { - $buff =~ s/\s?//; + $buff =~ s/^\s?//; print OUT "$buff\n\n"; $buff = undef; + } elsif( ( $buff ) = ( $line =~ /^\s*\/\*\*(.*)\*\*\// ) ) { + $buff =~ s/^\s*//; + $buff .= "\n"; } elsif( ( $head, $buff ) = ( $line =~ /^(.*)\/\*\*(.*)\*\*\// ) ) { $buff =~ s/^\s*//; $buff =~ s/\s*$//;