summaryrefslogtreecommitdiffstats
path: root/subopt-helper.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-06 20:41:02 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-06 20:41:02 +0000
commit7e253f01715811e0c4f5f5b54317b098f2cd59d9 (patch)
tree785750c4a7fa8498fc9cc7a4ef89c494a7b2c6d0 /subopt-helper.h
parent6cf4aafa36a609b02d5cf106b88cc8b79b9bd9d4 (diff)
downloadmpv-7e253f01715811e0c4f5f5b54317b098f2cd59d9.tar.bz2
mpv-7e253f01715811e0c4f5f5b54317b098f2cd59d9.tar.xz
Get rid of the "set" member of the subopt-parser struct, it made
it impossible to make the those struct variables const. Also it is not really useful, and wastes space. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28862 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subopt-helper.h')
-rw-r--r--subopt-helper.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/subopt-helper.h b/subopt-helper.h
index cd435d455b..ea6bdd5964 100644
--- a/subopt-helper.h
+++ b/subopt-helper.h
@@ -24,13 +24,10 @@ typedef struct opt_s
int type; ///< option type as defined in subopt-helper.h
void * valp; ///< pointer to the mem where the value should be stored
opt_test_f test; ///< argument test func ( optional )
- int set; ///< Is set internally by the parser if the option was found.
- ///< Don't use it at initialization of your opts, it will be
- ///< overriden anyway!
} opt_t;
/** parses the string for the options specified in opt */
-int subopt_parse( char const * const str, opt_t * opts );
+int subopt_parse( char const * const str, const opt_t * opts );
/*------------------ arg specific types and declaration -------------------*/