summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-09 15:17:00 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-12 09:32:46 +0000
commitcbda01021c561bd061cb03a1c1bab58199ac2307 (patch)
tree537e8397e84d3ccd4e16753101ded1bf676392b2 /CMakeLists.txt
parent37f8f566d53a3e2603467aa0bbe1e29581ddd561 (diff)
Fix style in DHT.c.
* Removed `ARRAY_SIZE` and use NULL markers for end of array, instead. The alternative is + size, but for these arrays, NULL markers made sense, since they are arrays of non-null pointers. * Made `INDEX_OF_PK` a self-contained macro, not dependent upon the naming inside its call site. This is a minor change but makes the code more local and reviews easier. * No nested structs. * Use only named function types ending in `_cb` for callbacks. * Replaced two macros with functions. * `++i` instead of `i++`. * struct member names start with lowercase letters. * It takes a bit of work to support `/**/` comments in preprocessor macros, so I've decided not to support these. If a macro is complex enough to need comments inside it, it's too complex. `//` comments are allowed at the end of macro definitions. * Callback typedefs must name their parameters.
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions