tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 1f1d943999bd0ade5153074bb90ee9a40440825f
parent 15819cde6163e43ac86d1be078a7b6b4e3ed7a02
Author: Nick Mathewson <nickm@torproject.org>
Date:   Fri, 10 Jan 2020 08:04:28 -0500

checkspace: allow spaces in cpp directives.

Diffstat:
Mscripts/maint/checkSpace.pl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl @@ -128,12 +128,12 @@ for my $fn (@ARGV) { if ($isheader) { if ($seenguard == 0) { - if (/ifndef\s+(\S+)/) { + if (/^\s*\#\s*ifndef\s+(\S+)/) { ++$seenguard; $guardname = $1; } } elsif ($seenguard == 1) { - if (/^\#define (\S+)/) { + if (/^\s*\#\s*define (\S+)/) { ++$seenguard; if ($1 ne $guardname) { msg "GUARD:$fn:$.: Header guard macro mismatch.\n";