[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #13233 [Tor]: Drop c90 compiler support



#13233: Drop c90 compiler support
---------------------------+--------------------------------
     Reporter:  Sebastian  |      Owner:
         Type:  defect     |     Status:  new
     Priority:  normal     |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor        |    Version:
   Resolution:             |   Keywords:
Actual Points:             |  Parent ID:
       Points:             |
---------------------------+--------------------------------

Comment (by nickm):

 Here's an imperfect coccinelle script to transform our code to use
 c99-style declare-at-time-of-use.  Probably we shouldn't run it for a
 while, until we're certain we will allow this syntax long-term.

 {{{
 @@
 identifier func;
 identifier v;
 type tp;
 expression e, e2;
 statement S1;
 @@
  func(...) {
  ...
 -tp v;
  ... when != v
 (
  {
    ... v ...
  }
 |
  if (e2) { ... v ... } else S1;
 |
  if (e2) S1 else { ... v ... }
 |
  if (e2) { ... v ... }
 |
 +tp
  v = e;
  ...
 )
  }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13233#comment:5>
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