mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 14:23:04 +01:00
20 lines
271 B
Perl
Executable file
20 lines
271 B
Perl
Executable file
#!/usr/bin/perl -w
|
|
|
|
use strict;
|
|
|
|
my @macros = ();
|
|
|
|
open(F, 'orconfig.h.in');
|
|
while(<F>) {
|
|
if (/^#undef +([A-Za-z0-9_]*)/) {
|
|
push @macros, $1;
|
|
}
|
|
}
|
|
close F;
|
|
|
|
for my $m (@macros) {
|
|
my $s = `git grep '$m' src`;
|
|
if ($s eq '') {
|
|
print "Unused: $m\n";
|
|
}
|
|
}
|