mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
82168e5e8b
Use 4 spaces indentations, convert tabs to spaces. No real code changes.
21 lines
285 B
Perl
Executable File
21 lines
285 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";
|
|
}
|
|
}
|