summaryrefslogtreecommitdiffstats
path: root/input/cmd.h
Commit message (Collapse)AuthorAgeFilesLines
* cmd: do not use a random value for MP_CMD_OPT_ARGwm42018-05-251-1/+1
| | | | | | | | | | | 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.
* input: move an enum back to its correct placewm42018-05-251-13/+0
| | | | This was accidentally moved together with the cmd stuff.
* input: rename weirdly named functionwm42018-05-031-1/+2
|
* input: move some more cmd definitions to cmd.hwm42018-05-031-0/+64
| | | | | | Now both command "descriptions" and runtime command instances are in cmd.h, which makes sense to me. input.h is now for the actual input context.
* input: merge cmd_list.c with cmd.cwm42018-05-031-0/+32
| | | | | | It doesn't really make sense to keep a separate cmd_list.c file, which does _not_ contain a command list, but only a few minor helper functions.
* input: rename cmd_parse.h to cmd.hwm42018-05-031-0/+55