]> mj.ucw.cz Git - libucw.git/blobdiff - build/doc-extract
Opt: Documented opt and its interaction with conf
[libucw.git] / build / doc-extract
index 576ad022cd75e6c0fda264cf35aba80fd34020a0..67fdd64cb070ab919fe7de69cc239c8bf39ccd2f 100755 (executable)
@@ -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*$//;