[tor-bugs] #6177 [Tor Relay]: Refactor complicated functions
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Mon Jun 25 18:17:09 UTC 2012
#6177: Refactor complicated functions
-----------------------+----------------------------------------------------
Reporter: andrea | Owner:
Type: task | Status: new
Priority: normal | Milestone: Tor: unspecified
Component: Tor Relay | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Comment(by nickm):
Here's a better one.
The horrible ugly pipeline I used to make it was:
{{{
( for f in src/tools/*.c src/tools/*/*.c src/or/*.c src/common/*.c ; do 1
gcc -E -I. -Isrc/common -Isrc/or $f | ~/build/cyclo-2.0/mcstrip |
~/build/cyclo-2.0/cyclo -c | perl -pe "print \"$f \""; done ) | sort -n
-k3 |grep -v OpenBSD | tail -150
}}}
plus a little postprocessing.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6177#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list