]> sourceware.org Git - newlib-cygwin.git/commit
sys/tree.h: Simplify chain of conditions
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 5 Oct 2021 13:39:10 +0000 (15:39 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 5 Oct 2021 14:09:50 +0000 (16:09 +0200)
commitee30f991c38851f1bfbbf72d19c5c6ee1b97f32a
tree7b6d2f6cd7c651653443ed42311d5470dd3c3ad1
parent098cf0f98dbb310c6a7ef94f0bdaf683f276767b
sys/tree.h: Simplify chain of conditions

In RB_GENERATE_REMOVE_COLOR() simplify a chain of conditions of the following
pattern

if (x) {
  ...
} else if (!x) {
  ...
}

to

if (x) {
  ...
} else {
  ...
}
newlib/libc/include/sys/tree.h
This page took 0.030719 seconds and 5 git commands to generate.