summaryrefslogtreecommitdiffstats
path: root/share/colldef
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2004-04-21 15:27:36 +0000
committerluigi <luigi@FreeBSD.org>2004-04-21 15:27:36 +0000
commitbce6deb4fb041629414c4ce802c54d07dddfaa33 (patch)
tree2caf575cff9c25d8817ae9f3211b1001ee2c184f /share/colldef
parent214b2b05ae98a5dead77bc1ba11aeea9d3401b00 (diff)
downloadFreeBSD-src-bce6deb4fb041629414c4ce802c54d07dddfaa33.zip
FreeBSD-src-bce6deb4fb041629414c4ce802c54d07dddfaa33.tar.gz
Readability fixes:
Clearly comment the assumptions on the structure of keys (addresses) and masks, and introduce a macro, LEN(p), to extract the size of these objects instead of using *(u_char *)p which might be confusing. Comment the confusion in the types used to pass around pointers to keys and masks, as a reminder to fix that at some point. Add a few comments on what some functions do. Comment a probably inefficient (but still correct) section of code in rn_walktree_from() The object code generated after this commit is the same as before. At some point we should also change same variable identifiers such as "t, tt, ttt" to fancier names such as "root, left, right" (just in case someone wants to understand the code!), replace misspelling of NULL as 0, remove 'register' declarations that make little sense these days.
Diffstat (limited to 'share/colldef')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud