blob: ceab06b564e6e00be450c526313fbdf37e1c834d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/usr/bin/env perl
use strict;
use warnings;
use C::Scan;
use Data::Dumper;
my $basedir = "/Users/tomfeist/sources/irssi/src";
my $filename = $basedir . "/fe-text/gui-printtext.c";
my $addflags = "-DUOFF_T_INT";
my $c = C::Scan->new( 'filename' => $filename,
# 'filename_filter' => $filter,b
'add_cppflags' => $addflags,
);
my @includes = (
$basedir,
$basedir . "/fe-text/",
$basedir . "/fe-common/",
$basedir . "/fe-common/core/",
$basedir . "/core/",
"/opt/local/include/glib-2.0",
"/opt/local/lib/glib-2.0/include/",
# "/opt/local/include/",
);
$c->set('includeDirs' => \@includes);
my $fdec = $c->get('parsed_fdecls');
print Dumper($fdec), $/;
|