diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-09 15:17:00 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-12 09:32:46 +0000 |
commit | cbda01021c561bd061cb03a1c1bab58199ac2307 (patch) | |
tree | 537e8397e84d3ccd4e16753101ded1bf676392b2 /toxav/video.h | |
parent | 37f8f566d53a3e2603467aa0bbe1e29581ddd561 (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 'toxav/video.h')
0 files changed, 0 insertions, 0 deletions