Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ajross
· 1y ago · 0 comments
Which also explains why very old APIs like struct timeval and struct stat have namespaced field names.
Comments
[–]
jclulow
1y ago
FWIW, some of us still do this in C programs today. Having a relatively unique prefix for struct members makes it extremely easy to find uses of those members with relatively simple tools like cscope.
[–]
ajross
OP
1y ago
Heh, tools. I just put an "XX" on the front of a field I want to refactor and see what breaks.
[–]
kragen
1y ago
Can't cscope tell you everywhere a given struct type is used?