Merge branch 'bug29693_040_radical_squashed' into maint-0.4.0
[tor.git] / scripts / maint / check_config_macros.pl
blobbcde2beccc92eb755b448962a075a6c32864e905
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";