[Privoxy-devel] atoi vs. parse_numeric_value

Fabian Keil fk at fabiankeil.de
Mon May 9 13:56:39 UTC 2016


Lee <ler762 at gmail.com> wrote:

> Now that loadcfg.c has changed from
> case hash_debug :
>    config->debug |= atoi(arg);
> 
> to
> case hash_debug :
>    config->debug |= parse_numeric_value(cmd, arg);
> 
> anyone else like the idea of changing the privoxy config debug flags
> to actually look like bit flags?

Who do you think would benefit from this?

Most Privoxy user are probably not familiar with bitmasks and
hexadecimal values so this change would make the config file
even more cryptic for them.

As someone who understands the concept, I still find decimal
values easier to remember than the hexadecimal representation.

Eventually I'd like to deprecate the whole debug directive
and introduce something like:

log-categories header,debug,connect...

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20160509/0e01de6d/attachment.bin>


More information about the Privoxy-devel mailing list