From 9e0e2f9c68df3a3b44778799d8d8347f04d3d50f Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Mon, 20 Oct 2008 22:28:21 +0200 Subject: [PATCH] Doc. system: Fix one-line structs & enums When a struct or enum started and ended on the same line (eg. struct { som items; }), the extractor did not recognize it as an end. --- build/doc-extract | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/doc-extract b/build/doc-extract index 4264140f..8bd84ef7 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -136,7 +136,7 @@ sub process( $ ) { } elsif( ( $head, $buff ) = ( $line =~ /^(.*)\/\*\*(.*)\*\*\// ) ) { $buff =~ s/^\s*//; $buff =~ s/\s*$//; - if( $head =~ /\(/ || $head !~ /{/ ) { + if( $head =~ /\(/ || $head !~ /{/ || $head =~/}/ ) { $head =~ s/^\s*//; $head =~ s/\/\*.*?\*\///gs; formatNote( $head, $buff ); -- 2.39.2