[tor-bugs] #29209 [Core Tor/Tor]: Reduce visibility of more data type internals
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Apr 23 19:44:41 UTC 2019
#29209: Reduce visibility of more data type internals
----------------------------------------+----------------------------------
Reporter: nickm | Owner: (none)
Type: task | Status: needs_review
Priority: Medium | Milestone: Tor:
| 0.4.1.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: technical-debt refactoring | Actual Points: 3.5
Parent ID: | Points: 15
Reviewer: nickm | Sponsor: Sponsor31-can
----------------------------------------+----------------------------------
Comment (by nickm):
Here is an alternative approach I talked about with Catalyst:
{{{
// Option 5
struct foobar_t {
int a;
char *_modulename__private__b;
long c;
};
#ifdef MODULENAME_PRIVATE
#define my_b _modulename__private_b
#endif
}}}
Instead of my_b we might use private_b, pvt_b, local_b, or something.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29209#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list