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 #print "processing $file\n";
16 my $p = CParser
->new($file);
19 my @hdrs=`find $dir -name '*.h'`;
22 #print "processing $_\n";
23 #next unless /unistd/;
24 my $h = CParser
->new($_);
28 for(keys %{$p->{funcs
}}) {
29 print "$_ defined in $file and $h->{cfile}\n" if(defined($h->{funcs
}->{$_}));