[PATCH 2/2] Add header's subdirectory and a link to its source file in the 'IMPLEMENTATION' notes.
max at mtew.isa-geek.net
max at mtew.isa-geek.net
Wed Feb 9 19:07:23 CST 2011
From: Max TenEyck Woodbury <max at mtew.isa-geek.net>
---
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;
--
1.7.4
More information about the wine-patches
mailing list