mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
475f01bc1a
* 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). |
||
---|---|---|
.. | ||
audio.c | ||
audio.h | ||
BUILD.bazel | ||
bwcontroller.c | ||
bwcontroller.h | ||
groupav.c | ||
groupav.h | ||
Makefile.inc | ||
msi.c | ||
msi.h | ||
ring_buffer_test.cc | ||
ring_buffer.c | ||
ring_buffer.h | ||
rtp_test.cc | ||
rtp.c | ||
rtp.h | ||
toxav_old.c | ||
toxav.api.h | ||
toxav.c | ||
toxav.h | ||
video.c | ||
video.h |