YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#ifndef _my_getopt_h #define _my_getopt_h
#include"my_sys.h"/* loglevel */ /* my_getopt and my_default are almost always used together */ #include <my_default.h>
struct my_option
{ constchar *name; /**< Name of the option. name=NULL markstheendofthemy_option[] array.
*/ int id; /**< For 0<id<255 it's means one characterforashortoption (like-A),if>255noshortoption iscreated,butalongoptionstill canbeidentifieduniquelyinthe my_get_one_option()callback. Ifanoptionneedsneitherspecial treatmentinthemy_get_one_option() norone-lettershortequivalent useid=0
*/ constchar *comment; /**< Option comment, for automated --help. ifit'sNULLtheoptionisnot visiblein--help.
*/ void *value; /**< A pointer to the variable value */ void *u_max_value; /**< The user def. max variable value */ struct st_typelib *typelib; /**< Pointer to possible values */
ulong var_type; /**< GET_BOOL, GET_ULL, etc */ enum get_opt_arg_type arg_type; /**< e.g. REQUIRED_ARG or OPT_ARG */
longlong def_value; /**< Default value */
longlong min_value; /**< Min allowed value (for numbers) */
ulonglong max_value; /**< Max allowed value (for numbers) */ constchar *deprecation_substitute; /**< Name of the substitute variable which deprecates thisone.UseDEPRECATED_NO_REPLACEMENTwhen noreplacementexistsforthegivenvariable.NULL valuemeansthevariableisnotdeprecated.
*/ long block_size; /**< Value should be a mult. of this (for numbers) */ void *app_type; /**< To be used by an application */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.