Re: [Dnsmasq-discuss] [PATCH] Simplify options flags

2018-10-24 Thread Simon Kelley
On 24/10/2018 16:25, Petr Mensik wrote: > Hi! > > I have not managed it until dnsmasq 2.80 were out, but anyway. I have > some proposal to simplify handling of options bits. Static analysis > complains on compiler dead-code optimization. I propose having array > instead. It adds few defines. But

[Dnsmasq-discuss] Compile-time options - taming the combinatorial explosion.

2018-10-24 Thread Simon Kelley
The dnsmasq code has a range of binary compile-time options, implemented conventionally using the C pre-processor. These options are mutually independent, so the numnber of different versions scales as 2^n. To keep this managable, I'm trying to limit the number of options. I've already removed

[Dnsmasq-discuss] [PATCH] Simplify options flags

2018-10-24 Thread Petr Mensik
Hi! I have not managed it until dnsmasq 2.80 were out, but anyway. I have some proposal to simplify handling of options bits. Static analysis complains on compiler dead-code optimization. I propose having array instead. It adds few defines. But it allows adding any bits to defines and moving