c2man: Mark the file used if a comment is found

André Hentschel nerv at dawncrow.de
Thu Aug 4 14:08:37 CDT 2011


gets all contributers now.
e.g. d3dx9_36 now lists:
Christian Costa, David Adam, Dylan Smith, Henri Verbeet, Ivan Gyurdiev, Jérôme Gardou, Luis Busquets, Matteo Bruni (for CodeWeavers), Michael Mc Donnell, Owen Rudge (for CodeWeavers), Philip Nilsson, Raphael Junqueira, Tony Wasserka, Travis Athougies
instead of only Tony Wasserka

---
 tools/c2man.pl |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/tools/c2man.pl b/tools/c2man.pl
index ce8a444..7eca8c4 100755
--- a/tools/c2man.pl
+++ b/tools/c2man.pl
@@ -300,6 +300,9 @@ sub process_source_file($)
     {
       if ( /^\/\**$/ )
       {
+        # This file is used by the DLL - Make sure we get our contributors right
+        @{$spec_files{$comment->{DLL_NAME}}[0]->{CURRENT_EXTRA}} = ();
+        push (@{$spec_files{$comment->{DLL_NAME}}[0]->{SOURCES}},$comment->{FILE});
         # Found a comment start
         $comment->{COMMENT_NAME} = "";
         $comment->{ALT_NAME} = "";
@@ -419,10 +422,6 @@ sub process_source_file($)
 
     if ($parse_state == 4) # Reading in the function definition
     {
-      # This file is used by the DLL - Make sure we get our contributors right
-      @{$spec_files{$comment->{DLL_NAME}}[0]->{CURRENT_EXTRA}} = ();
-      push (@{$spec_files{$comment->{DLL_NAME}}[0]->{SOURCES}},$comment->{FILE});
-
       push (@{$comment->{PROTOTYPE}},$_);
       # Strip comments from the line before checking for ')'
       my $stripped_line = $_;
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list