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

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Sep 24 20:11:59 UTC 2014


#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


More information about the tor-bugs mailing list