Re: Prevent bitrot on configure-switched options.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 20 Jun 2003 15:26:47 +0200

On Friday 20 June 2003 13.42, Robert Collins wrote:

> if (OPTION) {
> // some code here
> }
>
> Their rational is that:
> * The compiler then checks all code paths for parsability, scoping
> issues, variable renames ettc.
> * The resulting code should be identical with any reasonable
> optimising compiler.
> * It makes software with many options easier to maintain.

Does not work when there is data dependencies, which there usually is
in case of Squid.

Removing the data dependencies is probably not wise as having the data
conditionally defined helps to make sure the feature split is done
correctly.

Regards
Henrik
Received on Fri Jun 20 2003 - 07:27:05 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:09 MST