Move load-time removal of 'if' conditions
authorAlan T. DeKok <aland@freeradius.org>
Sat, 22 Mar 2014 17:53:56 +0000 (13:53 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 22 Mar 2014 17:55:30 +0000 (13:55 -0400)
commitf147456485e982cc18ce7e32682ecb1d49773c6f
tree99ebbaa00cb9ab086c211cbdf540eba07d7bd820
parent1eff4599e665b0d971bf7f1417c57e10549d6f4b
Move load-time removal of 'if' conditions

To where they make sense.  Which now also lets us do load-time
optimizations for:

if (1) {

}
else {
# no need to compile this
}

and

if (0) {
# ignored
}
elsif (..) {
# compiled
}

Which didn't work before
src/main/modcall.c
src/main/modules.c