diff subopt-helper.h @ 28827:2b021e3e1000

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.
author reimar
date Fri, 06 Mar 2009 20:41:02 +0000
parents 4129c8cfa742
children 0f1b5b68af32
line wrap: on
line diff
--- a/subopt-helper.h	Fri Mar 06 20:20:12 2009 +0000
+++ b/subopt-helper.h	Fri Mar 06 20:41:02 2009 +0000
@@ -24,13 +24,10 @@
   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 -------------------*/