Commit a2cc82cc authored by Max TenEyck Woodbury's avatar Max TenEyck Woodbury Committed by Alexandre Julliard

c2man: Search sub-directories for headers too.

parent c6aa255f
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
# TODO # TODO
# Consolidate A+W pairs together, and only write one doc, without the suffix # Consolidate A+W pairs together, and only write one doc, without the suffix
# Implement automatic docs fo structs/defines in headers # Implement automatic docs of structs/defines in headers
# SGML gurus - feel free to smarten up the SGML. # SGML gurus - feel free to smarten up the SGML.
# Add any other relevant information for the dll - imports etc # Add any other relevant information for the dll - imports etc
# Should we have a special output mode for WineHQ? # Should we have a special output mode for WineHQ?
...@@ -882,7 +882,7 @@ sub process_comment($) ...@@ -882,7 +882,7 @@ sub process_comment($)
$h_file =~ s/\n//; $h_file =~ s/\n//;
if ($h_file eq "") if ($h_file eq "")
{ {
$h_file = "Not defined in a Wine header. The function is either undocumented, or missing from Wine." $h_file = "Not declared in a Wine header. The function is either undocumented, or missing from Wine."
} }
else else
{ {
...@@ -2265,10 +2265,13 @@ while(defined($_ = shift @ARGV)) ...@@ -2265,10 +2265,13 @@ while(defined($_ = shift @ARGV))
/^L$/ && do { last; }; /^L$/ && do { last; };
/^w$/ && do { @opt_spec_file_list = (@opt_spec_file_list, shift @ARGV); last; }; /^w$/ && do { @opt_spec_file_list = (@opt_spec_file_list, shift @ARGV); last; };
s/^I// && do { if ($_ ne ".") { s/^I// && do { if ($_ ne ".") {
my $include = $_."/*.h"; foreach my $include (`find $_ -type d ! -name tests`) {
$include =~ s/\n//;
$include = $include."/*.h";
$include =~ s/\/\//\//g; $include =~ s/\/\//\//g;
my $have_headers = `ls $include >/dev/null 2>&1`; my $have_headers = `ls $include >/dev/null 2>&1`;
if ($? >> 8 == 0) { @opt_header_file_list = (@opt_header_file_list, $include); } if ($? >> 8 == 0) { @opt_header_file_list = (@opt_header_file_list, $include); }
};
} }
last; last;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment