summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-02 00:25:20 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-04 09:04:42 +0000
commit7f8b29c3465bae5b34999ad417508c2d0f6e6946 (patch)
treecf15e14621c0f1ef63d586063ce636a5efc90009 /toxcore/tox.c
parentaa63c1330c49ee1c4b675037e2e54516950203a2 (diff)
Avoid multiple for-next expressions.
All for-loops in toxcore are of the form for (<for-init>; <for-cond>; <for-next>) { <body> } `for-init` can be a variable declaration (like `int i = 0`), an assignment (like `i = 0`), or empty. `for-cond` can be any expression. `for-next` can be an assignment or a single increment/decrement expression (like `++i` or `--i`). No other forms are allowed, so e.g. comma expressions in any of these are not allowed (so no `for (i = 0, j = n; ...; ++i, --j)`).
Diffstat (limited to 'toxcore/tox.c')
0 files changed, 0 insertions, 0 deletions