[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #20168 [Core Tor/Tor]: Clarify our #if{n}def by commenting what they are at the #elif/#else/#endif
#20168: Clarify our #if{n}def by commenting what they are at the #elif/#else/#endif
--------------------------+------------------------------
Reporter: dgoulet | Owner:
Type: enhancement | Status: new
Priority: Very Low | Milestone: Tor: 0.2.???
Component: Core Tor/Tor | Version:
Severity: Trivial | Resolution:
Keywords: easy, lorax | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+------------------------------
Comment (by cjb):
I wonder if there's a tool that'd do this programmatically! (At least for
a first pass.)
Here's one I just found, it's a vim script:
https://sites.google.com/site/abudden/contents/Vim-Scripts/smart-brace
--preprocessor-commenting/smartcommenter.vba?attredirects=0&d=1
I'd guess it's straightforward to make it count the number of lines
between the if/else/elif and their endif, and suppress the output if
that's fewer than N lines.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20168#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs