Commit 40ce9819 authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

update script to use /* */ comments

parent 5d06bbc6
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment