Merge branch 'maint-0.4.8'
[tor.git] / scripts / maint / check_config_macros.pl
blob1398b9984a99022e40cdb151b82300bb348ebd73
1 #!/usr/bin/perl -w
3 use strict;
5 my @macros = ();
7 open(F, 'orconfig.h.in');
8 while(<F>) {
9 if (/^#undef +([A-Za-z0-9_]*)/) {
10 push @macros, $1;
13 close F;
15 for my $m (@macros) {
16 my $s = `git grep '$m' src`;
17 if ($s eq '') {
18 print "Unused: $m\n";