Mercurial > mplayer.hg
diff m_option.h @ 26408:7a36d5941fd8
Replace the trivial command line preparser with a more robust version
allowing all kind of options to be used.
author | albeu |
---|---|
date | Sun, 13 Apr 2008 19:18:51 +0000 |
parents | 83c95bd31aab |
children | af274aef6b81 |
line wrap: on
line diff
--- a/m_option.h Sun Apr 13 11:15:08 2008 +0000 +++ b/m_option.h Sun Apr 13 19:18:51 2008 +0000 @@ -321,6 +321,9 @@ /// option only if it was set by the user. #define M_OPT_OLD (1<<6) +/// The option should be set during command line pre-parsing +#define M_OPT_PRE_PARSE (1<<7) + /// \defgroup OldOptionFlags Backward compatibility /// /// These are kept for compatibility with older code. @@ -333,6 +336,7 @@ #define CONF_GLOBAL M_OPT_GLOBAL #define CONF_NOSAVE M_OPT_NOSAVE #define CONF_OLD M_OPT_OLD +#define CONF_PRE_PARSE M_OPT_PRE_PARSE ///@} ///@} @@ -395,6 +399,8 @@ #define M_CONFIG_FILE 0 /// Set when parsing command line arguments. #define M_COMMAND_LINE 1 +/// Set when pre-parsing the command line +#define M_COMMAND_LINE_PRE_PARSE 2 ///@}