aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-15 16:11:48 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-15 16:11:48 -0400
commit40ce9819dd7c589f624715c9c800cff714140a70 (patch)
treeb3a1d9ff8e7c49d85df0cfb792ce6a00cf1520c8 /scripts
parent5d06bbc66feefef2ea280fa0e7968711a912264b (diff)
downloadtor-40ce9819dd7c589f624715c9c800cff714140a70.tar.gz
tor-40ce9819dd7c589f624715c9c800cff714140a70.zip
update script to use /* */ comments
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/annotate_ifdef_directives6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/maint/annotate_ifdef_directives b/scripts/maint/annotate_ifdef_directives
index 2571bc9a25..368d842e2e 100755
--- a/scripts/maint/annotate_ifdef_directives
+++ b/scripts/maint/annotate_ifdef_directives
@@ -47,7 +47,7 @@ def translate(f_in, f_out):
raise Problem("Unexpected #%s on %d"% (command,lineno))
if (len(cur_level) == 1 and command == 'else' and
lineno > cur_level[0][2] + LINE_OBVIOUSNESS_LIMIT):
- f_out.write("#else // !(%s)\n"%cur_level[0][1])
+ f_out.write("#else /* !(%s) */\n"%cur_level[0][1])
else:
f_out.write(line)
cur_level.append((command, rest, lineno))
@@ -59,9 +59,9 @@ def translate(f_in, f_out):
f_out.write(line)
elif len(cur_level) == 1 or (
len(cur_level) == 2 and cur_level[1][0] == 'else'):
- f_out.write("#endif // %s\n"%cur_level[0][1])
+ f_out.write("#endif /* %s */\n"%cur_level[0][1])
else:
- f_out.write("#endif // %s || ...\n"%cur_level[0][1])
+ f_out.write("#endif /* %s || ... */\n"%cur_level[0][1])
cur_level = stack.pop()
if len(stack) or cur_level != whole_file:
raise Problem("Missing #endif")