summaryrefslogtreecommitdiff
path: root/other/astyle/pre-commit
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-12 22:01:42 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-14 21:59:27 +0000
commit475f01bc1aaffc2a6b0a04909dc1b81d38573d04 (patch)
treef40ba06680f04233920db7d3b2a2daa80c50e414 /other/astyle/pre-commit
parentfc34fee59abbd79bd530b57fcbc030bde45df00a (diff)
Fix style in toxav.c.
* Use Camel_Snake_Case for type names. * Use at least 4 characters for constant names. I.e. `END` is a type name, but `RETURN` is a constant name. This is because `DHT` is a type name (yay consistency). * Using `min_*` functions instead of MIN, we can avoid a cast. * Use `for`-loops for for-each-frame semantics instead of `while`. * Don't use assignments as expressions. * `++i` instead of `i++`. * Function pointers are dereferenced automatically, so no need to manually do so. * Avoid void pointers that lie about not being spaghetti code. Toxcore and toxav are both spaghetti and shouldn't pretend anything else. * Don't use empty statements (e.g. no `;;` anywhere in the code).
Diffstat (limited to 'other/astyle/pre-commit')
0 files changed, 0 insertions, 0 deletions