summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-28 19:04:16 +0100
committerwm4 <wm4@nowhere>2013-11-28 19:04:16 +0100
commit5318a1bea1e477033cd355e19be366f0504222e9 (patch)
tree23d400653b1bed44eb4901d72f57accbf8d6e5da /wscript
parent5411fbdb2341433dfa3241034390c19c257ce57e (diff)
downloadmpv-5318a1bea1e477033cd355e19be366f0504222e9.tar.bz2
mpv-5318a1bea1e477033cd355e19be366f0504222e9.tar.xz
input: use separate type for command definitions
Introduce a mp_cmd_def struct to define commands, instead of using mp_cmd for this. This way each command parameter can be a m_option, instead of m_option plus some more stuff. Define the ARG_ macros directly in terms of the OPT_ macros. Not sure if this makes it easier to read (maybe not, even if it looks simpler), but at least it makes it easier to add other option types. Another idea was adding a name for each parameter (so you could have named parameters), but not today.
Diffstat (limited to 'wscript')
0 files changed, 0 insertions, 0 deletions