chiark / gitweb /
Pull out common subexpression of conditions in adjust_weight
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 15 Oct 2021 13:24:09 +0000 (14:24 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 15 Oct 2021 13:24:09 +0000 (14:24 +0100)
commit43a560f2301f4484e57791ead22879749fb5f994
treed310ac4acd0cc15da9d5b18e95b52b43bbab4086
parent726fa5a495741dfbce8d176a4ff6157f5906b087
Pull out common subexpression of conditions in adjust_weight

By having short names for the co-ordinates of the points we're
considering, we can make the conditions easier to read, which will
help as the conditions become more complex.
bedstead.c