[tor-bugs] #13172 [Tor]: Stop using operators as macro arguments ?

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Nov 6 18:34:19 UTC 2014


#13172: Stop using operators as macro arguments ?
------------------------+--------------------------------
     Reporter:  nickm   |      Owner:
         Type:  defect  |     Status:  needs_review
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------

Comment (by nickm):

 Possibly better perl:
 {{{
 #!/usr/bin/perl -w -p -i

 next if m#^ */\*# or m#^ \*#;

 s/< *([,)])/OP_LT$1/;
 s/(?<=[\s,])< *([,)])/OP_GT$1/;
 #s/> *([,)])/OP_GT$1/;
 s/== *([,)])/OP_EQ$1/;
 s/>= *([,)])/OP_GE$1/;
 s/<= *([,)])/OP_LE$1/;
 s/!= *([,)])/OP_NE$1/;

 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13172#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list