diff options
author | wm4 <wm4@nowhere> | 2012-09-20 03:32:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-09 00:21:16 +0100 |
commit | 830560979c02b4e06924a813cf9bacb1629d40c9 (patch) | |
tree | c90295bcc2bc77bee2d2a8c13d661d5b20772117 /core/av_log.c | |
parent | ae070a6f1eff9f38dcd3ec785dd1f251e3761472 (diff) | |
download | mpv-830560979c02b4e06924a813cf9bacb1629d40c9.tar.bz2 mpv-830560979c02b4e06924a813cf9bacb1629d40c9.tar.xz |
options: change handling of "no-" options
Normally, all flag options can be negated by prepending a "no-", for
example "--no-opt" becomes "--opt=no". Some flag options can't actually
be negated, so add a CONF_TYPE_STORE option type to disallow the "no-"
fallback.
Do the same for choice options. Remove the explicit "no-" prefixed
options, add "no" as choice.
Move the handling of automatic "no-" options from parser-mpcmd.c to
m_config.c, and use it in m_config_set_option/m_config_parse_option.
This makes these options available in the config file. It also
simplifies sub-option parsing, because it doesn't need to handle "no-"
anymore.
Diffstat (limited to 'core/av_log.c')
0 files changed, 0 insertions, 0 deletions