diff options
author | wm4 <wm4@nowhere> | 2018-05-17 20:40:53 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-05-25 11:13:44 +0200 |
commit | 36099d27f86af23e75c8a08b1b9aa41697dc86b1 (patch) | |
tree | d9ebc24967480c458d7e4a975c1d7d14c5215466 | |
parent | 9fe4e10c7dfb7591adc39d0f0b77f4bae54fbc14 (diff) | |
download | mpv-36099d27f86af23e75c8a08b1b9aa41697dc86b1.tar.bz2 mpv-36099d27f86af23e75c8a08b1b9aa41697dc86b1.tar.xz |
cmd: do not use a random value for MP_CMD_OPT_ARG
This flag is used only by the command parser. Its value overlapped with
some of the existing m_option flags, but only flags that did not matter
for the command parser (i.e. the flag bits used had mostly private uses
in each component). It's still a bit unclean and dangerous to use an
essentially random value, so reuse M_OPT_OPTIONAL_PARAM for it.
Since M_OPT_OPTIONAL_PARAM has a slightly longer name than
MP_CMD_OPT_ARG, I'm going to keep the old name.
-rw-r--r-- | input/cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/cmd.h b/input/cmd.h index 7fc3ee63c5..e09bcaa1c4 100644 --- a/input/cmd.h +++ b/input/cmd.h @@ -24,7 +24,7 @@ #include "options/m_option.h" #define MP_CMD_DEF_MAX_ARGS 9 -#define MP_CMD_OPT_ARG 0x1000 +#define MP_CMD_OPT_ARG M_OPT_OPTIONAL_PARAM struct mp_log; struct mp_cmd; |