summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-07-23 09:46:29 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-07-23 09:46:29 -0400
commitef2dd1ba967eb457c3ace590e4a00d14cb6cf854 (patch)
treef61a7db60287c5b30bb0c3e79576f1e76724eca8 /scripts
parent2fce1274de5bcfd053d6b4b4b5858f6061eb2989 (diff)
parent3e34840a77c45da3575b8a929ed8bbd7370aad63 (diff)
downloadtor-ef2dd1ba967eb457c3ace590e4a00d14cb6cf854.tar.gz
tor-ef2dd1ba967eb457c3ace590e4a00d14cb6cf854.zip
Merge branch 'tor-github/pr/1116'
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/add_c_file.py6
-rwxr-xr-xscripts/maint/checkSpace.pl2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/maint/add_c_file.py b/scripts/maint/add_c_file.py
index 499415974f..adf7ce79bb 100755
--- a/scripts/maint/add_c_file.py
+++ b/scripts/maint/add_c_file.py
@@ -125,8 +125,8 @@ class AutomakeChunk:
Y \
Z
"""
- self.prespace = "\t"
- self.postspace = "\t\t"
+ prespace = "\t"
+ postspace = "\t\t"
for lineno, line in enumerate(self.lines):
m = re.match(r'(\s+)(\S+)(\s+)\\', line)
if not m:
@@ -135,7 +135,7 @@ class AutomakeChunk:
if fname > member:
self.insert_before(lineno, member, prespace, postspace)
return
- self.insert_at_end(member)
+ self.insert_at_end(member, prespace, postspace)
def insert_before(self, lineno, member, prespace, postspace):
self.lines.insert(lineno,
diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index 433ae62807..9c9b68ff9d 100755
--- a/scripts/maint/checkSpace.pl
+++ b/scripts/maint/checkSpace.pl
@@ -177,7 +177,7 @@ for my $fn (@ARGV) {
$1 ne "elsif" and $1 ne "WINAPI" and $2 ne "WINAPI" and
$1 ne "void" and $1 ne "__attribute__" and $1 ne "op" and
$1 ne "size_t" and $1 ne "double" and $1 ne "uint64_t" and
- $1 ne "workqueue_reply_t") {
+ $1 ne "workqueue_reply_t" and $1 ne "bool") {
msg " fn ():$fn:$.\n";
}
}