[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #13260 [Core Tor/Tor]: Transform code to cleaner c99 style
#13260: Transform code to cleaner c99 style
-------------------------------------------------+-------------------------
Reporter: nickm | Owner:
Type: defect | Status: new
Priority: Low | Milestone: Tor:
| unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: coccinelle, tor-client technical- | Actual Points:
debt |
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by ahf):
We should probably figure out what we want to do here:
First two things I can think of:
- Convert functions that returns 0 or 1 to return `bool` (`true`/`false`)
from `<stdbool.h>`?
- Lift `for` loop variables declarations into their loop initialiser?
Additionally, It might be interesting to figure out when/if we can start
using `C11` features?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13260#comment:8>
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