7 use lib dirname
(abs_path
($0));
9 use Data
::Dump
qw(dump);
11 my $file = $ARGV[0] or die ("need filename");
12 my $dir = $ARGV[1] or die ("need dir with headers as second arg");
14 my $p = CParser
->new($file);
17 my @hdrs=`find $dir -name '*.h'`;
20 #print "processing $_\n";
21 #next unless /unistd/;
22 my $h = CParser
->new($_);
26 for(keys %{$p->{funcs
}}) {
27 print "$_ defined in $file and $h->{cfile}\n" if(defined($h->{funcs
}->{$_}));