$hasdump = 1;
}
-# Function to guess type of stytement
+# Function to guess type of statement
sub detect( $ ) {
( $_ ) = @_;
# typedef struct|enum { something } name;
$oneline =~ s/\s+$//;
$oneline =~ s/;?$/;/ if( $semicolon );
$head =~ s/;?\s*$/;/ if( $semicolon );
- $head =~ s/(\.\.\.)/\\$1/g;
+ $head =~ s/(\s|,|\()(\.\.\.)/$1\\$2/g; # Do not convert tripple dot into ellipsis
print OUT "[[${type}_$name]]\n";
$head = $oneline if $type eq 'fun';#Remove { from inline functions
# Remove the generic hack markup
$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*$//;