1 # This file is part of the graph-includes package
3 # (c) 2005 Yann Dirson <ydirson@altern.org>
4 # Distributed under version 2 of the GNU GPL.
6 package graphincludes
::extractor
::C
;
10 use base
qw(graphincludes::extractor);
12 use graphincludes
::params
;
13 use File
::Basename
qw(dirname);
15 sub pattern
{ '\.[ch]$' }
21 @ARGV = @
{$self->{FILES
}};
24 if (m/^\s*#\s*include\s*"(.*)"/) {
25 $dstfile = $self->locatefile ($1, dirname
($ARGV), @graphincludes::params
::inclpath
);
26 } elsif (m/^\s*#\s*include\s*<(.*)>/) {
27 $dstfile = $self->locatefile ($1, @graphincludes::params
::inclpath
);
32 if (defined $dstfile) {
33 $self->record_dep (\
%deps, $ARGV, $dstfile);
35 $self->record_missed_dep ($ARGV, $1);