if(constant) instead of #if

Henry Spencer henry at utzoo.uucp
Sat Jul 30 04:14:17 AEST 1988


In article <19730 at cornell.UUCP> blandy at cs.cornell.edu (Jim Blandy) writes:
>An alternative to consider:  it's a simple task for a compiler to 
>recognize that the condition for an if ( ) statement is a constant,
>use this knowledge in guessing which statements are unreachable, and
>drop unreachable code...

This does not work for declarations, unfortunately.
-- 
MSDOS is not dead, it just     |     Henry Spencer at U of Toronto Zoology
smells that way.               | uunet!mnetor!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list