#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
_______________________________________________
tor-bugs mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Reply via email to