Lines 16-43
print <<EOF;
Link Here
|
16 |
|
16 |
|
17 |
#ifdef G_HAVE_GNUC_VISIBILITY |
17 |
#ifdef G_HAVE_GNUC_VISIBILITY |
18 |
|
18 |
|
19 |
EOF |
19 |
EOF |
20 |
|
20 |
|
21 |
if ($do_def) { |
|
|
22 |
print <<EOF |
23 |
#undef IN_FILE |
24 |
#define IN_FILE defined |
25 |
|
26 |
#undef IN_HEADER |
27 |
#define IN_HEADER(x) 1 |
28 |
|
29 |
EOF |
30 |
} |
31 |
else { |
32 |
print <<EOF |
33 |
#define IN_FILE(x) 1 |
34 |
#define IN_HEADER defined |
35 |
|
36 |
EOF |
37 |
} |
38 |
|
39 |
my $in_comment = 0; |
21 |
my $in_comment = 0; |
40 |
my $in_skipped_section = 0; |
22 |
my $in_skipped_section = 0; |
41 |
|
23 |
|
42 |
while (<>) { |
24 |
while (<>) { |
43 |
|
25 |
|
Lines 95-108
while (<>) {
Link Here
|
95 |
print $_; |
77 |
print $_; |
96 |
|
78 |
|
97 |
next; |
79 |
next; |
98 |
} |
80 |
} |
99 |
|
81 |
|
100 |
if ($_ =~ /^\#if.*(IN_FILE|IN_HEADER)/) |
82 |
if ($_ =~ /^\#if.*(IN_FILE)/) |
101 |
{ |
83 |
{ |
102 |
print $_; |
84 |
if ($do_def) |
103 |
|
85 |
{ |
|
|
86 |
$_ =~ s/IN_FILE/defined/g; |
87 |
print $_; |
88 |
} |
89 |
else |
90 |
{ |
91 |
$_ =~ s/IN_FILE(.*)/1/g; |
92 |
print $_; |
93 |
} |
94 |
|
95 |
next; |
96 |
} |
97 |
|
98 |
if ($_ =~ /^\#if.*(IN_HEADER)/) |
99 |
{ |
100 |
if ($do_def) |
101 |
{ |
102 |
$_ =~ s/IN_HEADER(.*)/1/g; |
103 |
print $_; |
104 |
} |
105 |
else |
106 |
{ |
107 |
$_ =~ s/IN_HEADER/defined/g; |
108 |
print $_; |
109 |
} |
110 |
|
104 |
next; |
111 |
next; |
105 |
} |
112 |
} |
106 |
|
113 |
|
107 |
chop; |
114 |
chop; |
108 |
my $str = $_; |
115 |
my $str = $_; |