Max TenEyck Woodbury : c2man: Add header' s subdirectory and a link to its source file in the 'IMPLEMENTATION' notes.
Alexandre Julliard
julliard at winehq.org
Mon Feb 14 10:02:04 CST 2011
Module: wine
Branch: master
Commit: de6a2528494a5db0a3e37bab7a334244c429732d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=de6a2528494a5db0a3e37bab7a334244c429732d
Author: Max TenEyck Woodbury <max at mtew.isa-geek.net>
Date: Wed Feb 9 20:07:23 2011 -0500
c2man: Add header's subdirectory and a link to its source file in the 'IMPLEMENTATION' notes.
---
tools/c2man.pl | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/tools/c2man.pl b/tools/c2man.pl
index 984563d..db9f25f 100755
--- a/tools/c2man.pl
+++ b/tools/c2man.pl
@@ -860,7 +860,8 @@ sub process_comment($)
$tmp =~ s/\n.*//g;
if ($tmp ne "")
{
- $h_file = `basename $tmp`;
+ $h_file = "$tmp";
+ $h_file =~ s|^.*/\./||;
}
}
}
@@ -874,7 +875,8 @@ sub process_comment($)
$tmp =~ s/\n.*//g;
if ($tmp ne "")
{
- $h_file = `basename $tmp`;
+ $h_file = "$tmp";
+ $h_file =~ s|^.*/\./||;
}
}
}
@@ -886,7 +888,7 @@ sub process_comment($)
}
else
{
- $h_file = "Defined in \"".$h_file."\".";
+ $h_file = "Declared in \"".$h_file."\".";
}
}
@@ -1611,6 +1613,7 @@ sub output_api_comment($)
{
# Link to the file in WineHQ cvs
s/^(Implemented in \")(.+?)(\"\.)/$1$2$3 http:\/\/source.winehq.org\/source\/$2/g;
+ s/^(Declared in \")(.+?)(\"\.)/$1$2$3 http:\/\/source.winehq.org\/source\/include\/$2/g;
}
# Highlight strings
s/(\".+?\")/$fmt[2]$1$fmt[3]/g;
@@ -2265,7 +2268,7 @@ while(defined($_ = shift @ARGV))
/^L$/ && do { last; };
/^w$/ && do { @opt_spec_file_list = (@opt_spec_file_list, shift @ARGV); last; };
s/^I// && do { if ($_ ne ".") {
- foreach my $include (`find $_ -type d ! -name tests`) {
+ foreach my $include (`find $_/./ -type d ! -name tests`) {
$include =~ s/\n//;
$include = $include."/*.h";
$include =~ s/\/\//\//g;
More information about the wine-cvs
mailing list