repo.or.cz
/
tor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
0.3.1.10 and 0.2.9.15 changelogs got left out too
[tor.git]
/
scripts
/
maint
/
check_config_macros.pl
blob
bcde2beccc92eb755b448962a075a6c32864e905
1
#!/usr/bin/perl -w
2
3
use
strict
;
4
5
my
@macros
= ();
6
7
open
(
F
,
'orconfig.h.in'
);
8
while
(<
F
>) {
9
if
(
/^#undef +([A-Za-z0-9_]*)/
) {
10
push
@macros
,
$1
;
11
}
12
}
13
close
F
;
14
15
for
my
$m
(
@macros
) {
16
my
$s
=
`git grep '
$m
' src`
;
17
if
(
$s
eq
''
) {
18
print
"Unused:
$m
\n
"
;
19
}
20
}