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.
This commit is contained in:
wm4 2018-05-17 20:40:53 +02:00 committed by sfan5
parent 9fe4e10c7d
commit 36099d27f8
1 changed files with 1 additions and 1 deletions

View File

@ -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;