|
@@ -2,7 +2,7 @@
|
|
*
|
|
*
|
|
* DO NOT EDIT THIS FILE (options.h)
|
|
* DO NOT EDIT THIS FILE (options.h)
|
|
*
|
|
*
|
|
- * It has been AutoGen-ed Saturday July 28, 2007 at 01:01:42 PM PDT
|
|
|
|
|
|
+ * It has been AutoGen-ed Wednesday December 31, 2008 at 07:07:15 PM PST
|
|
* From the definitions funcs.def
|
|
* From the definitions funcs.def
|
|
* and the template file options_h
|
|
* and the template file options_h
|
|
*
|
|
*
|
|
@@ -27,6 +27,7 @@
|
|
#ifndef AUTOOPTS_OPTIONS_H_GUARD
|
|
#ifndef AUTOOPTS_OPTIONS_H_GUARD
|
|
#define AUTOOPTS_OPTIONS_H_GUARD 1
|
|
#define AUTOOPTS_OPTIONS_H_GUARD 1
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|
|
|
|
+#include <stdio.h>
|
|
|
|
|
|
#if defined(HAVE_STDINT_H)
|
|
#if defined(HAVE_STDINT_H)
|
|
# include <stdint.h>
|
|
# include <stdint.h>
|
|
@@ -65,8 +66,8 @@
|
|
* values for "opt_name" are available.
|
|
* values for "opt_name" are available.
|
|
*/
|
|
*/
|
|
|
|
|
|
-#define OPTIONS_STRUCT_VERSION 122880
|
|
|
|
-#define OPTIONS_VERSION_STRING "30:0:5"
|
|
|
|
|
|
+#define OPTIONS_STRUCT_VERSION 131072
|
|
|
|
+#define OPTIONS_VERSION_STRING "32:0:7"
|
|
#define OPTIONS_MINIMUM_VERSION 102400
|
|
#define OPTIONS_MINIMUM_VERSION 102400
|
|
#define OPTIONS_MIN_VER_STRING "25:0:0"
|
|
#define OPTIONS_MIN_VER_STRING "25:0:0"
|
|
|
|
|
|
@@ -77,7 +78,9 @@ typedef enum {
|
|
OPARG_TYPE_BOOLEAN = 3, /* opt arg is boolean-valued */
|
|
OPARG_TYPE_BOOLEAN = 3, /* opt arg is boolean-valued */
|
|
OPARG_TYPE_MEMBERSHIP = 4, /* opt arg sets set membership bits */
|
|
OPARG_TYPE_MEMBERSHIP = 4, /* opt arg sets set membership bits */
|
|
OPARG_TYPE_NUMERIC = 5, /* opt arg has numeric value */
|
|
OPARG_TYPE_NUMERIC = 5, /* opt arg has numeric value */
|
|
- OPARG_TYPE_HIERARCHY = 6 /* option arg is hierarchical value */
|
|
|
|
|
|
+ OPARG_TYPE_HIERARCHY = 6, /* option arg is hierarchical value */
|
|
|
|
+ OPARG_TYPE_FILE = 7, /* option arg names a file */
|
|
|
|
+ OPARG_TYPE_TIME = 8 /* opt arg is a time duration */
|
|
} teOptArgType;
|
|
} teOptArgType;
|
|
|
|
|
|
typedef struct optionValue {
|
|
typedef struct optionValue {
|
|
@@ -93,6 +96,22 @@ typedef struct optionValue {
|
|
} v;
|
|
} v;
|
|
} tOptionValue;
|
|
} tOptionValue;
|
|
|
|
|
|
|
|
+typedef enum {
|
|
|
|
+ FTYPE_MODE_MAY_EXIST = 0x00,
|
|
|
|
+ FTYPE_MODE_MUST_EXIST = 0x01,
|
|
|
|
+ FTYPE_MODE_MUST_NOT_EXIST = 0x02,
|
|
|
|
+ FTYPE_MODE_EXIST_MASK = 0x03,
|
|
|
|
+ FTYPE_MODE_NO_OPEN = 0x00,
|
|
|
|
+ FTYPE_MODE_OPEN_FD = 0x10,
|
|
|
|
+ FTYPE_MODE_FOPEN_FP = 0x20,
|
|
|
|
+ FTYPE_MODE_OPEN_MASK = 0x30
|
|
|
|
+} teOptFileType;
|
|
|
|
+
|
|
|
|
+typedef union {
|
|
|
|
+ int file_flags;
|
|
|
|
+ char const * file_mode;
|
|
|
|
+} tuFileMode;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Bits in the fOptState option descriptor field.
|
|
* Bits in the fOptState option descriptor field.
|
|
*/
|
|
*/
|
|
@@ -100,6 +119,7 @@ typedef enum {
|
|
OPTST_SET_ID = 0, /* Set via the "SET_OPT()" macro */
|
|
OPTST_SET_ID = 0, /* Set via the "SET_OPT()" macro */
|
|
OPTST_PRESET_ID = 1, /* Set via an RC/INI file */
|
|
OPTST_PRESET_ID = 1, /* Set via an RC/INI file */
|
|
OPTST_DEFINED_ID = 2, /* Set via a command line option */
|
|
OPTST_DEFINED_ID = 2, /* Set via a command line option */
|
|
|
|
+ OPTST_RESET_ID = 3, /* Reset via command line option */
|
|
OPTST_EQUIVALENCE_ID = 4, /* selected by equiv'ed option */
|
|
OPTST_EQUIVALENCE_ID = 4, /* selected by equiv'ed option */
|
|
OPTST_DISABLED_ID = 5, /* option is in disabled state */
|
|
OPTST_DISABLED_ID = 5, /* option is in disabled state */
|
|
OPTST_ALLOC_ARG_ID = 6, /* pzOptArg was allocated */
|
|
OPTST_ALLOC_ARG_ID = 6, /* pzOptArg was allocated */
|
|
@@ -118,13 +138,15 @@ typedef enum {
|
|
OPTST_MUST_SET_ID = 20, /* must be set or pre-set */
|
|
OPTST_MUST_SET_ID = 20, /* must be set or pre-set */
|
|
OPTST_DOCUMENT_ID = 21, /* opt is for doc only */
|
|
OPTST_DOCUMENT_ID = 21, /* opt is for doc only */
|
|
OPTST_TWICE_ID = 22, /* process opt twice - imm + reg */
|
|
OPTST_TWICE_ID = 22, /* process opt twice - imm + reg */
|
|
- OPTST_DISABLE_TWICE_ID = 23 /* process disabled option twice */
|
|
|
|
|
|
+ OPTST_DISABLE_TWICE_ID = 23, /* process disabled option twice */
|
|
|
|
+ OPTST_SCALED_NUM_ID = 24 /* scaled integer value */
|
|
} opt_state_enum_t;
|
|
} opt_state_enum_t;
|
|
|
|
|
|
#define OPTST_INIT 0U
|
|
#define OPTST_INIT 0U
|
|
#define OPTST_SET (1U << OPTST_SET_ID)
|
|
#define OPTST_SET (1U << OPTST_SET_ID)
|
|
#define OPTST_PRESET (1U << OPTST_PRESET_ID)
|
|
#define OPTST_PRESET (1U << OPTST_PRESET_ID)
|
|
#define OPTST_DEFINED (1U << OPTST_DEFINED_ID)
|
|
#define OPTST_DEFINED (1U << OPTST_DEFINED_ID)
|
|
|
|
+#define OPTST_RESET (1U << OPTST_RESET_ID)
|
|
#define OPTST_EQUIVALENCE (1U << OPTST_EQUIVALENCE_ID)
|
|
#define OPTST_EQUIVALENCE (1U << OPTST_EQUIVALENCE_ID)
|
|
#define OPTST_DISABLED (1U << OPTST_DISABLED_ID)
|
|
#define OPTST_DISABLED (1U << OPTST_DISABLED_ID)
|
|
#define OPTST_ALLOC_ARG (1U << OPTST_ALLOC_ARG_ID)
|
|
#define OPTST_ALLOC_ARG (1U << OPTST_ALLOC_ARG_ID)
|
|
@@ -144,16 +166,19 @@ typedef enum {
|
|
#define OPTST_DOCUMENT (1U << OPTST_DOCUMENT_ID)
|
|
#define OPTST_DOCUMENT (1U << OPTST_DOCUMENT_ID)
|
|
#define OPTST_TWICE (1U << OPTST_TWICE_ID)
|
|
#define OPTST_TWICE (1U << OPTST_TWICE_ID)
|
|
#define OPTST_DISABLE_TWICE (1U << OPTST_DISABLE_TWICE_ID)
|
|
#define OPTST_DISABLE_TWICE (1U << OPTST_DISABLE_TWICE_ID)
|
|
-#define OPT_STATE_MASK 0x00FFFF77U
|
|
|
|
|
|
+#define OPTST_SCALED_NUM (1U << OPTST_SCALED_NUM_ID)
|
|
|
|
+#define OPT_STATE_MASK 0x01FFFF7FU
|
|
|
|
|
|
#define OPTST_SET_MASK ( \
|
|
#define OPTST_SET_MASK ( \
|
|
OPTST_SET | \
|
|
OPTST_SET | \
|
|
OPTST_PRESET | \
|
|
OPTST_PRESET | \
|
|
|
|
+ OPTST_RESET | \
|
|
OPTST_DEFINED )
|
|
OPTST_DEFINED )
|
|
|
|
|
|
#define OPTST_MUTABLE_MASK ( \
|
|
#define OPTST_MUTABLE_MASK ( \
|
|
OPTST_SET | \
|
|
OPTST_SET | \
|
|
OPTST_PRESET | \
|
|
OPTST_PRESET | \
|
|
|
|
+ OPTST_RESET | \
|
|
OPTST_DEFINED | \
|
|
OPTST_DEFINED | \
|
|
OPTST_EQUIVALENCE | \
|
|
OPTST_EQUIVALENCE | \
|
|
OPTST_DISABLED | \
|
|
OPTST_DISABLED | \
|
|
@@ -169,6 +194,11 @@ typedef enum {
|
|
OPTST_ARG_TYPE_3 | \
|
|
OPTST_ARG_TYPE_3 | \
|
|
OPTST_ARG_TYPE_4 )
|
|
OPTST_ARG_TYPE_4 )
|
|
|
|
|
|
|
|
+#define OPTST_DO_NOT_SAVE_MASK ( \
|
|
|
|
+ OPTST_NO_INIT | \
|
|
|
|
+ OPTST_DOCUMENT | \
|
|
|
|
+ OPTST_OMITTED )
|
|
|
|
+
|
|
#ifdef NO_OPTIONAL_OPT_ARGS
|
|
#ifdef NO_OPTIONAL_OPT_ARGS
|
|
# undef OPTST_ARG_OPTIONAL
|
|
# undef OPTST_ARG_OPTIONAL
|
|
# define OPTST_ARG_OPTIONAL 0
|
|
# define OPTST_ARG_OPTIONAL 0
|
|
@@ -176,13 +206,12 @@ typedef enum {
|
|
|
|
|
|
#define OPTST_PERSISTENT_MASK (~OPTST_MUTABLE_MASK)
|
|
#define OPTST_PERSISTENT_MASK (~OPTST_MUTABLE_MASK)
|
|
|
|
|
|
-#define SELECTED_OPT( pod ) ((pod)->fOptState & OPTST_SELECTED_MASK)
|
|
|
|
-#define UNUSED_OPT( pod ) (((pod)->fOptState & OPTST_SET_MASK) == 0)
|
|
|
|
-#define DISABLED_OPT( pod ) ((pod)->fOptState & OPTST_DISABLED)
|
|
|
|
-#define OPTION_STATE( pod ) ((pod)->fOptState)
|
|
|
|
-
|
|
|
|
-#define OPTST_SET_ARGTYPE(n) ((n) << OPTST_ARG_TYPE_1_ID)
|
|
|
|
-#define OPTST_GET_ARGTYPE(f) (((f) & OPTST_ARG_TYPE_MASK)>>OPTST_ARG_TYPE_1_ID)
|
|
|
|
|
|
+#define SELECTED_OPT(_od) ((_od)->fOptState & OPTST_SELECTED_MASK)
|
|
|
|
+#define UNUSED_OPT( _od) (((_od)->fOptState & OPTST_SET_MASK) == 0)
|
|
|
|
+#define DISABLED_OPT(_od) ((_od)->fOptState & OPTST_DISABLED)
|
|
|
|
+#define OPTION_STATE(_od) ((_od)->fOptState)
|
|
|
|
+#define OPTST_SET_ARGTYPE(_n) ((_n) << OPTST_ARG_TYPE_1_ID)
|
|
|
|
+#define OPTST_GET_ARGTYPE(_f) (((_f)&OPTST_ARG_TYPE_MASK)>>OPTST_ARG_TYPE_1_ID)
|
|
|
|
|
|
/*
|
|
/*
|
|
* PRIVATE INTERFACES
|
|
* PRIVATE INTERFACES
|
|
@@ -196,42 +225,50 @@ typedef enum {
|
|
* Define the processing state flags
|
|
* Define the processing state flags
|
|
*/
|
|
*/
|
|
typedef enum {
|
|
typedef enum {
|
|
- OPTPROC_LONGOPT_ID = 0, /* Process long style options */
|
|
|
|
- OPTPROC_SHORTOPT_ID = 1, /* Process short style "flags" */
|
|
|
|
- OPTPROC_ERRSTOP_ID = 2, /* Stop on argument errors */
|
|
|
|
- OPTPROC_DISABLEDOPT_ID = 3, /* Current option is disabled */
|
|
|
|
- OPTPROC_NO_REQ_OPT_ID = 4, /* no options are required */
|
|
|
|
- OPTPROC_NUM_OPT_ID = 5, /* there is a number option */
|
|
|
|
- OPTPROC_INITDONE_ID = 6, /* have initializations been done? */
|
|
|
|
- OPTPROC_NEGATIONS_ID = 7, /* any negation options? */
|
|
|
|
- OPTPROC_ENVIRON_ID = 8, /* check environment? */
|
|
|
|
- OPTPROC_NO_ARGS_ID = 9, /* Disallow remaining arguments */
|
|
|
|
- OPTPROC_ARGS_REQ_ID = 10, /* Require arguments after options */
|
|
|
|
- OPTPROC_REORDER_ID = 11, /* reorder operands after options */
|
|
|
|
- OPTPROC_GNUUSAGE_ID = 12, /* emit usage in GNU style */
|
|
|
|
- OPTPROC_TRANSLATE_ID = 13, /* Translate strings in tOptions */
|
|
|
|
- OPTPROC_HAS_IMMED_ID = 14, /* program defines immed options */
|
|
|
|
- OPTPROC_PRESETTING_ID = 19 /* opt processing in preset state */
|
|
|
|
|
|
+ OPTPROC_LONGOPT_ID = 0, /* Process long style options */
|
|
|
|
+ OPTPROC_SHORTOPT_ID = 1, /* Process short style "flags" */
|
|
|
|
+ OPTPROC_ERRSTOP_ID = 2, /* Stop on argument errors */
|
|
|
|
+ OPTPROC_DISABLEDOPT_ID = 3, /* Current option is disabled */
|
|
|
|
+ OPTPROC_NO_REQ_OPT_ID = 4, /* no options are required */
|
|
|
|
+ OPTPROC_NUM_OPT_ID = 5, /* there is a number option */
|
|
|
|
+ OPTPROC_INITDONE_ID = 6, /* have inits been done? */
|
|
|
|
+ OPTPROC_NEGATIONS_ID = 7, /* any negation options? */
|
|
|
|
+ OPTPROC_ENVIRON_ID = 8, /* check environment? */
|
|
|
|
+ OPTPROC_NO_ARGS_ID = 9, /* Disallow remaining arguments */
|
|
|
|
+ OPTPROC_ARGS_REQ_ID = 10, /* Require args after options */
|
|
|
|
+ OPTPROC_REORDER_ID = 11, /* reorder operands after opts */
|
|
|
|
+ OPTPROC_GNUUSAGE_ID = 12, /* emit usage in GNU style */
|
|
|
|
+ OPTPROC_TRANSLATE_ID = 13, /* Translate strings in tOptions */
|
|
|
|
+ OPTPROC_HAS_IMMED_ID = 14, /* program defines immed options */
|
|
|
|
+ OPTPROC_NXLAT_OPT_CFG_ID = 16, /* suppress for config only */
|
|
|
|
+ OPTPROC_NXLAT_OPT_ID = 17, /* suppress xlation always */
|
|
|
|
+ OPTPROC_PRESETTING_ID = 19 /* opt processing in preset state */
|
|
} optproc_state_enum_t;
|
|
} optproc_state_enum_t;
|
|
|
|
|
|
-#define OPTPROC_NONE 0U
|
|
|
|
-#define OPTPROC_LONGOPT (1U << OPTPROC_LONGOPT_ID)
|
|
|
|
-#define OPTPROC_SHORTOPT (1U << OPTPROC_SHORTOPT_ID)
|
|
|
|
-#define OPTPROC_ERRSTOP (1U << OPTPROC_ERRSTOP_ID)
|
|
|
|
-#define OPTPROC_DISABLEDOPT (1U << OPTPROC_DISABLEDOPT_ID)
|
|
|
|
-#define OPTPROC_NO_REQ_OPT (1U << OPTPROC_NO_REQ_OPT_ID)
|
|
|
|
-#define OPTPROC_NUM_OPT (1U << OPTPROC_NUM_OPT_ID)
|
|
|
|
-#define OPTPROC_INITDONE (1U << OPTPROC_INITDONE_ID)
|
|
|
|
-#define OPTPROC_NEGATIONS (1U << OPTPROC_NEGATIONS_ID)
|
|
|
|
-#define OPTPROC_ENVIRON (1U << OPTPROC_ENVIRON_ID)
|
|
|
|
-#define OPTPROC_NO_ARGS (1U << OPTPROC_NO_ARGS_ID)
|
|
|
|
-#define OPTPROC_ARGS_REQ (1U << OPTPROC_ARGS_REQ_ID)
|
|
|
|
-#define OPTPROC_REORDER (1U << OPTPROC_REORDER_ID)
|
|
|
|
-#define OPTPROC_GNUUSAGE (1U << OPTPROC_GNUUSAGE_ID)
|
|
|
|
-#define OPTPROC_TRANSLATE (1U << OPTPROC_TRANSLATE_ID)
|
|
|
|
-#define OPTPROC_HAS_IMMED (1U << OPTPROC_HAS_IMMED_ID)
|
|
|
|
-#define OPTPROC_PRESETTING (1U << OPTPROC_PRESETTING_ID)
|
|
|
|
-#define OPTPROC_STATE_MASK 0x00087FFFU
|
|
|
|
|
|
+#define OPTPROC_NONE 0U
|
|
|
|
+#define OPTPROC_LONGOPT (1U << OPTPROC_LONGOPT_ID)
|
|
|
|
+#define OPTPROC_SHORTOPT (1U << OPTPROC_SHORTOPT_ID)
|
|
|
|
+#define OPTPROC_ERRSTOP (1U << OPTPROC_ERRSTOP_ID)
|
|
|
|
+#define OPTPROC_DISABLEDOPT (1U << OPTPROC_DISABLEDOPT_ID)
|
|
|
|
+#define OPTPROC_NO_REQ_OPT (1U << OPTPROC_NO_REQ_OPT_ID)
|
|
|
|
+#define OPTPROC_NUM_OPT (1U << OPTPROC_NUM_OPT_ID)
|
|
|
|
+#define OPTPROC_INITDONE (1U << OPTPROC_INITDONE_ID)
|
|
|
|
+#define OPTPROC_NEGATIONS (1U << OPTPROC_NEGATIONS_ID)
|
|
|
|
+#define OPTPROC_ENVIRON (1U << OPTPROC_ENVIRON_ID)
|
|
|
|
+#define OPTPROC_NO_ARGS (1U << OPTPROC_NO_ARGS_ID)
|
|
|
|
+#define OPTPROC_ARGS_REQ (1U << OPTPROC_ARGS_REQ_ID)
|
|
|
|
+#define OPTPROC_REORDER (1U << OPTPROC_REORDER_ID)
|
|
|
|
+#define OPTPROC_GNUUSAGE (1U << OPTPROC_GNUUSAGE_ID)
|
|
|
|
+#define OPTPROC_TRANSLATE (1U << OPTPROC_TRANSLATE_ID)
|
|
|
|
+#define OPTPROC_HAS_IMMED (1U << OPTPROC_HAS_IMMED_ID)
|
|
|
|
+#define OPTPROC_NXLAT_OPT_CFG (1U << OPTPROC_NXLAT_OPT_CFG_ID)
|
|
|
|
+#define OPTPROC_NXLAT_OPT (1U << OPTPROC_NXLAT_OPT_ID)
|
|
|
|
+#define OPTPROC_PRESETTING (1U << OPTPROC_PRESETTING_ID)
|
|
|
|
+#define OPTPROC_STATE_MASK 0x000B7FFFU
|
|
|
|
+
|
|
|
|
+#define OPTPROC_NO_XLAT_MASK ( \
|
|
|
|
+ OPTPROC_NXLAT_OPT_CFG | \
|
|
|
|
+ OPTPROC_NXLAT_OPT )
|
|
|
|
|
|
#define STMTS(s) do { s; } while (0)
|
|
#define STMTS(s) do { s; } while (0)
|
|
|
|
|
|
@@ -262,19 +299,23 @@ typedef enum { AG_FALSE = 0, AG_TRUE } ag_bool;
|
|
typedef struct options tOptions;
|
|
typedef struct options tOptions;
|
|
typedef struct optDesc tOptDesc;
|
|
typedef struct optDesc tOptDesc;
|
|
typedef struct optNames tOptNames;
|
|
typedef struct optNames tOptNames;
|
|
|
|
+#define OPTPROC_EMIT_USAGE ((tOptions *)0x01UL)
|
|
|
|
+#define OPTPROC_EMIT_SHELL ((tOptions *)0x02UL)
|
|
|
|
+#define OPTPROC_RETURN_VALNAME ((tOptions *)0x03UL)
|
|
|
|
+#define OPTPROC_EMIT_LIMIT ((tOptions *)0x0FUL)
|
|
|
|
|
|
/*
|
|
/*
|
|
* The option procedures do the special processing for each
|
|
* The option procedures do the special processing for each
|
|
* option flag that needs it.
|
|
* option flag that needs it.
|
|
*/
|
|
*/
|
|
-typedef void (tOptProc)( tOptions* pOpts, tOptDesc* pOptDesc );
|
|
|
|
|
|
+typedef void (tOptProc)(tOptions* pOpts, tOptDesc* pOptDesc);
|
|
typedef tOptProc* tpOptProc;
|
|
typedef tOptProc* tpOptProc;
|
|
|
|
|
|
/*
|
|
/*
|
|
* The usage procedure will never return. It calls "exit(2)"
|
|
* The usage procedure will never return. It calls "exit(2)"
|
|
* with the "exitCode" argument passed to it.
|
|
* with the "exitCode" argument passed to it.
|
|
*/
|
|
*/
|
|
-typedef void (tUsageProc)( tOptions* pOpts, int exitCode );
|
|
|
|
|
|
+typedef void (tUsageProc)(tOptions* pOpts, int exitCode);
|
|
typedef tUsageProc* tpUsageProc;
|
|
typedef tUsageProc* tpUsageProc;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -308,6 +349,8 @@ typedef union {
|
|
long argInt;
|
|
long argInt;
|
|
unsigned long argUint;
|
|
unsigned long argUint;
|
|
unsigned int argBool;
|
|
unsigned int argBool;
|
|
|
|
+ FILE* argFp;
|
|
|
|
+ int argFd;
|
|
} optArgBucket_t;
|
|
} optArgBucket_t;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -331,15 +374,15 @@ struct optDesc {
|
|
# define pzLastArg optArg.argString
|
|
# define pzLastArg optArg.argString
|
|
void* optCookie; /* PUBLIC */
|
|
void* optCookie; /* PUBLIC */
|
|
|
|
|
|
- const int * pOptMust;
|
|
|
|
- const int * pOptCant;
|
|
|
|
- tpOptProc pOptProc;
|
|
|
|
- char const* pzText;
|
|
|
|
|
|
+ int const * const pOptMust;
|
|
|
|
+ int const * const pOptCant;
|
|
|
|
+ tpOptProc const pOptProc;
|
|
|
|
+ char const* const pzText;
|
|
|
|
|
|
- char const* pz_NAME;
|
|
|
|
- char const* pz_Name;
|
|
|
|
- char const* pz_DisableName;
|
|
|
|
- char const* pz_DisablePfx;
|
|
|
|
|
|
+ char const* const pz_NAME;
|
|
|
|
+ char const* const pz_Name;
|
|
|
|
+ char const* const pz_DisableName;
|
|
|
|
+ char const* const pz_DisablePfx;
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -367,19 +410,19 @@ struct options {
|
|
unsigned int curOptIdx;
|
|
unsigned int curOptIdx;
|
|
char* pzCurOpt;
|
|
char* pzCurOpt;
|
|
|
|
|
|
- char const* pzProgPath;
|
|
|
|
- char const* pzProgName;
|
|
|
|
- char const* const pzPROGNAME;
|
|
|
|
- char const* const pzRcName;
|
|
|
|
- char const* const pzCopyright;
|
|
|
|
- char const* const pzCopyNotice;
|
|
|
|
- char const* const pzFullVersion;
|
|
|
|
|
|
+ char const* pzProgPath; /* PUBLIC */
|
|
|
|
+ char const* pzProgName; /* PUBLIC */
|
|
|
|
+ char const* const pzPROGNAME; /* PUBLIC */
|
|
|
|
+ char const* const pzRcName; /* PUBLIC */
|
|
|
|
+ char const* const pzCopyright; /* PUBLIC */
|
|
|
|
+ char const* const pzCopyNotice; /* PUBLIC */
|
|
|
|
+ char const* const pzFullVersion; /* PUBLIC */
|
|
char const* const* const papzHomeList;
|
|
char const* const* const papzHomeList;
|
|
char const* const pzUsageTitle;
|
|
char const* const pzUsageTitle;
|
|
char const* const pzExplain;
|
|
char const* const pzExplain;
|
|
char const* const pzDetail;
|
|
char const* const pzDetail;
|
|
- tOptDesc* const pOptDesc;
|
|
|
|
- char const* const pzBugAddr;
|
|
|
|
|
|
+ tOptDesc* const pOptDesc; /* PUBLIC */
|
|
|
|
+ char const* const pzBugAddr; /* PUBLIC */
|
|
|
|
|
|
void* pExtensions;
|
|
void* pExtensions;
|
|
void* pSavedState;
|
|
void* pSavedState;
|
|
@@ -392,9 +435,20 @@ struct options {
|
|
int const presetOptCt;
|
|
int const presetOptCt;
|
|
char const * pzFullUsage;
|
|
char const * pzFullUsage;
|
|
char const * pzShortUsage;
|
|
char const * pzShortUsage;
|
|
|
|
+ /* PUBLIC: */
|
|
|
|
+ optArgBucket_t const * const originalOptArgArray;
|
|
|
|
+ void * const * const originalOptArgCookie;
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|
|
|
|
+ * Versions where in various fields first appear:
|
|
|
|
+ * ($AO_CURRENT * 4096 + $AO_REVISION, but $AO_REVISION must be zero)
|
|
|
|
+ */
|
|
|
|
+#define originalOptArgArray_STRUCT_VERSION 131072 /* AO_CURRENT = 32 */
|
|
|
|
+#define HAS_originalOptArgArray(_opt) \
|
|
|
|
+ ((_opt)->structVersion >= originalOptArgArray_STRUCT_VERSION)
|
|
|
|
+
|
|
|
|
+/*
|
|
* "token list" structure returned by "string_tokenize()"
|
|
* "token list" structure returned by "string_tokenize()"
|
|
*/
|
|
*/
|
|
typedef struct {
|
|
typedef struct {
|
|
@@ -487,10 +541,10 @@ extern "C" {
|
|
* Double quote strings are formed according to the rules of string
|
|
* Double quote strings are formed according to the rules of string
|
|
* constants in ANSI-C programs.
|
|
* constants in ANSI-C programs.
|
|
*/
|
|
*/
|
|
-extern token_list_t* ao_string_tokenize( char const* );
|
|
|
|
|
|
+extern token_list_t* ao_string_tokenize(char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: configfile.c line 90
|
|
|
|
|
|
+/* From: configfile.c line 86
|
|
*
|
|
*
|
|
* configFileLoad - parse a configuration file
|
|
* configFileLoad - parse a configuration file
|
|
*
|
|
*
|
|
@@ -507,10 +561,10 @@ extern token_list_t* ao_string_tokenize( char const* );
|
|
* @code{optionGetValue()}, @code{optionNextValue()} and
|
|
* @code{optionGetValue()}, @code{optionNextValue()} and
|
|
* @code{optionUnloadNested()}.
|
|
* @code{optionUnloadNested()}.
|
|
*/
|
|
*/
|
|
-extern const tOptionValue* configFileLoad( char const* );
|
|
|
|
|
|
+extern const tOptionValue* configFileLoad(char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: configfile.c line 860
|
|
|
|
|
|
+/* From: configfile.c line 883
|
|
*
|
|
*
|
|
* optionFileLoad - Load the locatable config files, in order
|
|
* optionFileLoad - Load the locatable config files, in order
|
|
*
|
|
*
|
|
@@ -537,10 +591,10 @@ extern const tOptionValue* configFileLoad( char const* );
|
|
*
|
|
*
|
|
* Configuration files not found or not decipherable are simply ignored.
|
|
* Configuration files not found or not decipherable are simply ignored.
|
|
*/
|
|
*/
|
|
-extern int optionFileLoad( tOptions*, char const* );
|
|
|
|
|
|
+extern int optionFileLoad(tOptions*, char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: configfile.c line 222
|
|
|
|
|
|
+/* From: configfile.c line 218
|
|
*
|
|
*
|
|
* optionFindNextValue - find a hierarcicaly valued option instance
|
|
* optionFindNextValue - find a hierarcicaly valued option instance
|
|
*
|
|
*
|
|
@@ -556,10 +610,10 @@ extern int optionFileLoad( tOptions*, char const* );
|
|
* configurable. It will search through the list and return the next entry
|
|
* configurable. It will search through the list and return the next entry
|
|
* that matches the criteria.
|
|
* that matches the criteria.
|
|
*/
|
|
*/
|
|
-extern const tOptionValue* optionFindNextValue( const tOptDesc*, const tOptionValue*, char const*, char const* );
|
|
|
|
|
|
+extern const tOptionValue* optionFindNextValue(const tOptDesc*, const tOptionValue*, char const*, char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: configfile.c line 148
|
|
|
|
|
|
+/* From: configfile.c line 144
|
|
*
|
|
*
|
|
* optionFindValue - find a hierarcicaly valued option instance
|
|
* optionFindValue - find a hierarcicaly valued option instance
|
|
*
|
|
*
|
|
@@ -573,10 +627,10 @@ extern const tOptionValue* optionFindNextValue( const tOptDesc*, const tOptionVa
|
|
* This routine will find an entry in a nested value option or configurable.
|
|
* This routine will find an entry in a nested value option or configurable.
|
|
* It will search through the list and return a matching entry.
|
|
* It will search through the list and return a matching entry.
|
|
*/
|
|
*/
|
|
-extern const tOptionValue* optionFindValue( const tOptDesc*, char const*, char const* );
|
|
|
|
|
|
+extern const tOptionValue* optionFindValue(const tOptDesc*, char const*, char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: restore.c line 165
|
|
|
|
|
|
+/* From: restore.c line 166
|
|
*
|
|
*
|
|
* optionFree - free allocated option processing memory
|
|
* optionFree - free allocated option processing memory
|
|
*
|
|
*
|
|
@@ -586,10 +640,10 @@ extern const tOptionValue* optionFindValue( const tOptDesc*, char const*, char c
|
|
* AutoOpts sometimes allocates memory and puts pointers to it in the
|
|
* AutoOpts sometimes allocates memory and puts pointers to it in the
|
|
* option state structures. This routine deallocates all such memory.
|
|
* option state structures. This routine deallocates all such memory.
|
|
*/
|
|
*/
|
|
-extern void optionFree( tOptions* );
|
|
|
|
|
|
+extern void optionFree(tOptions*);
|
|
|
|
|
|
|
|
|
|
-/* From: configfile.c line 291
|
|
|
|
|
|
+/* From: configfile.c line 287
|
|
*
|
|
*
|
|
* optionGetValue - get a specific value from a hierarcical list
|
|
* optionGetValue - get a specific value from a hierarcical list
|
|
*
|
|
*
|
|
@@ -604,10 +658,10 @@ extern void optionFree( tOptions* );
|
|
* the first entry with a name that exactly matches the argument will be
|
|
* the first entry with a name that exactly matches the argument will be
|
|
* returned.
|
|
* returned.
|
|
*/
|
|
*/
|
|
-extern const tOptionValue* optionGetValue( const tOptionValue*, char const* );
|
|
|
|
|
|
+extern const tOptionValue* optionGetValue(const tOptionValue*, char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: load.c line 498
|
|
|
|
|
|
+/* From: load.c line 499
|
|
*
|
|
*
|
|
* optionLoadLine - process a string for an option name and value
|
|
* optionLoadLine - process a string for an option name and value
|
|
*
|
|
*
|
|
@@ -628,10 +682,10 @@ extern const tOptionValue* optionGetValue( const tOptionValue*, char const* );
|
|
* formation used in AutoGen definition files (@pxref{basic expression}),
|
|
* formation used in AutoGen definition files (@pxref{basic expression}),
|
|
* except that you may not use backquotes.
|
|
* except that you may not use backquotes.
|
|
*/
|
|
*/
|
|
-extern void optionLoadLine( tOptions*, char const* );
|
|
|
|
|
|
+extern void optionLoadLine(tOptions*, char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: configfile.c line 350
|
|
|
|
|
|
+/* From: configfile.c line 346
|
|
*
|
|
*
|
|
* optionNextValue - get the next value from a hierarchical list
|
|
* optionNextValue - get the next value from a hierarchical list
|
|
*
|
|
*
|
|
@@ -647,10 +701,10 @@ extern void optionLoadLine( tOptions*, char const* );
|
|
* The "@var{pOldValue}" must have been gotten from a prior call to this
|
|
* The "@var{pOldValue}" must have been gotten from a prior call to this
|
|
* routine or to "@code{opitonGetValue()}".
|
|
* routine or to "@code{opitonGetValue()}".
|
|
*/
|
|
*/
|
|
-extern const tOptionValue* optionNextValue( const tOptionValue*, const tOptionValue* );
|
|
|
|
|
|
+extern const tOptionValue* optionNextValue(const tOptionValue*, const tOptionValue*);
|
|
|
|
|
|
|
|
|
|
-/* From: usage.c line 107
|
|
|
|
|
|
+/* From: usage.c line 108
|
|
*
|
|
*
|
|
* optionOnlyUsage - Print usage text for just the options
|
|
* optionOnlyUsage - Print usage text for just the options
|
|
*
|
|
*
|
|
@@ -662,10 +716,10 @@ extern const tOptionValue* optionNextValue( const tOptionValue*, const tOptionVa
|
|
* This function may be used when the emitted usage must incorporate
|
|
* This function may be used when the emitted usage must incorporate
|
|
* information not available to AutoOpts.
|
|
* information not available to AutoOpts.
|
|
*/
|
|
*/
|
|
-extern void optionOnlyUsage( tOptions*, int );
|
|
|
|
|
|
+extern void optionOnlyUsage(tOptions*, int);
|
|
|
|
|
|
|
|
|
|
-/* From: autoopts.c line 989
|
|
|
|
|
|
+/* From: autoopts.c line 1006
|
|
*
|
|
*
|
|
* optionProcess - this is the main option processing routine
|
|
* optionProcess - this is the main option processing routine
|
|
*
|
|
*
|
|
@@ -692,10 +746,10 @@ extern void optionOnlyUsage( tOptions*, int );
|
|
* is treated as an operand. Encountering an operand stops option
|
|
* is treated as an operand. Encountering an operand stops option
|
|
* processing.
|
|
* processing.
|
|
*/
|
|
*/
|
|
-extern int optionProcess( tOptions*, int, char** );
|
|
|
|
|
|
+extern int optionProcess(tOptions*, int, char**);
|
|
|
|
|
|
|
|
|
|
-/* From: restore.c line 122
|
|
|
|
|
|
+/* From: restore.c line 123
|
|
*
|
|
*
|
|
* optionRestore - restore option state from memory copy
|
|
* optionRestore - restore option state from memory copy
|
|
*
|
|
*
|
|
@@ -709,10 +763,10 @@ extern int optionProcess( tOptions*, int, char** );
|
|
* to optionProcess(3AO), then you may change the contents of the
|
|
* to optionProcess(3AO), then you may change the contents of the
|
|
* argc/argv parameters to optionProcess.
|
|
* argc/argv parameters to optionProcess.
|
|
*/
|
|
*/
|
|
-extern void optionRestore( tOptions* );
|
|
|
|
|
|
+extern void optionRestore(tOptions*);
|
|
|
|
|
|
|
|
|
|
-/* From: save.c line 311
|
|
|
|
|
|
+/* From: save.c line 671
|
|
*
|
|
*
|
|
* optionSaveFile - saves the option state to a file
|
|
* optionSaveFile - saves the option state to a file
|
|
*
|
|
*
|
|
@@ -725,11 +779,19 @@ extern void optionRestore( tOptions* );
|
|
* @code{homerc} attribute. If no @code{rcfile} attribute was specified, it
|
|
* @code{homerc} attribute. If no @code{rcfile} attribute was specified, it
|
|
* will default to @code{.@i{programname}rc}. If you wish to specify another
|
|
* will default to @code{.@i{programname}rc}. If you wish to specify another
|
|
* file, you should invoke the @code{SET_OPT_SAVE_OPTS( @i{filename} )} macro.
|
|
* file, you should invoke the @code{SET_OPT_SAVE_OPTS( @i{filename} )} macro.
|
|
|
|
+ *
|
|
|
|
+ * The recommend usage is as follows:
|
|
|
|
+ * @example
|
|
|
|
+ * optionProcess(&progOptions, argc, argv);
|
|
|
|
+ * if (i_want_a_non_standard_place_for_this)
|
|
|
|
+ * SET_OPT_SAVE_OPTS("myfilename");
|
|
|
|
+ * optionSaveFile(&progOptions);
|
|
|
|
+ * @end example
|
|
*/
|
|
*/
|
|
-extern void optionSaveFile( tOptions* );
|
|
|
|
|
|
+extern void optionSaveFile(tOptions*);
|
|
|
|
|
|
|
|
|
|
-/* From: restore.c line 70
|
|
|
|
|
|
+/* From: restore.c line 71
|
|
*
|
|
*
|
|
* optionSaveState - saves the option state to memory
|
|
* optionSaveState - saves the option state to memory
|
|
*
|
|
*
|
|
@@ -748,10 +810,10 @@ extern void optionSaveFile( tOptions* );
|
|
* restoring of stacked string arguments and hierarchical values is
|
|
* restoring of stacked string arguments and hierarchical values is
|
|
* disabled. The values are not saved.
|
|
* disabled. The values are not saved.
|
|
*/
|
|
*/
|
|
-extern void optionSaveState( tOptions* );
|
|
|
|
|
|
+extern void optionSaveState(tOptions*);
|
|
|
|
|
|
|
|
|
|
-/* From: nested.c line 537
|
|
|
|
|
|
+/* From: nested.c line 570
|
|
*
|
|
*
|
|
* optionUnloadNested - Deallocate the memory for a nested value
|
|
* optionUnloadNested - Deallocate the memory for a nested value
|
|
*
|
|
*
|
|
@@ -762,10 +824,10 @@ extern void optionSaveState( tOptions* );
|
|
* have been gotten from a call to @code{configFileLoad()} (See
|
|
* have been gotten from a call to @code{configFileLoad()} (See
|
|
* @pxref{libopts-configFileLoad}).
|
|
* @pxref{libopts-configFileLoad}).
|
|
*/
|
|
*/
|
|
-extern void optionUnloadNested( tOptionValue const * );
|
|
|
|
|
|
+extern void optionUnloadNested(tOptionValue const *);
|
|
|
|
|
|
|
|
|
|
-/* From: version.c line 41
|
|
|
|
|
|
+/* From: version.c line 38
|
|
*
|
|
*
|
|
* optionVersion - return the compiled AutoOpts version number
|
|
* optionVersion - return the compiled AutoOpts version number
|
|
*
|
|
*
|
|
@@ -774,7 +836,7 @@ extern void optionUnloadNested( tOptionValue const * );
|
|
* Returns the full version string compiled into the library.
|
|
* Returns the full version string compiled into the library.
|
|
* The returned string cannot be modified.
|
|
* The returned string cannot be modified.
|
|
*/
|
|
*/
|
|
-extern char const* optionVersion( void );
|
|
|
|
|
|
+extern char const* optionVersion(void);
|
|
|
|
|
|
|
|
|
|
/* From: ../compat/pathfind.c line 33
|
|
/* From: ../compat/pathfind.c line 33
|
|
@@ -817,11 +879,11 @@ extern char const* optionVersion( void );
|
|
* @end example
|
|
* @end example
|
|
*/
|
|
*/
|
|
#ifndef HAVE_PATHFIND
|
|
#ifndef HAVE_PATHFIND
|
|
-extern char* pathfind( char const*, char const*, char const* );
|
|
|
|
|
|
+extern char* pathfind(char const*, char const*, char const*);
|
|
#endif /* HAVE_PATHFIND */
|
|
#endif /* HAVE_PATHFIND */
|
|
|
|
|
|
|
|
|
|
-/* From: streqvcmp.c line 208
|
|
|
|
|
|
+/* From: streqvcmp.c line 209
|
|
*
|
|
*
|
|
* strequate - map a list of characters to the same value
|
|
* strequate - map a list of characters to the same value
|
|
*
|
|
*
|
|
@@ -833,10 +895,10 @@ extern char* pathfind( char const*, char const*, char const* );
|
|
* This function name is mapped to option_strequate so as to not conflict
|
|
* This function name is mapped to option_strequate so as to not conflict
|
|
* with the POSIX name space.
|
|
* with the POSIX name space.
|
|
*/
|
|
*/
|
|
-extern void strequate( char const* );
|
|
|
|
|
|
+extern void strequate(char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: streqvcmp.c line 118
|
|
|
|
|
|
+/* From: streqvcmp.c line 119
|
|
*
|
|
*
|
|
* streqvcmp - compare two strings with an equivalence mapping
|
|
* streqvcmp - compare two strings with an equivalence mapping
|
|
*
|
|
*
|
|
@@ -852,10 +914,10 @@ extern void strequate( char const* );
|
|
* This function name is mapped to option_streqvcmp so as to not conflict
|
|
* This function name is mapped to option_streqvcmp so as to not conflict
|
|
* with the POSIX name space.
|
|
* with the POSIX name space.
|
|
*/
|
|
*/
|
|
-extern int streqvcmp( char const*, char const* );
|
|
|
|
|
|
+extern int streqvcmp(char const*, char const*);
|
|
|
|
|
|
|
|
|
|
-/* From: streqvcmp.c line 155
|
|
|
|
|
|
+/* From: streqvcmp.c line 156
|
|
*
|
|
*
|
|
* streqvmap - Set the character mappings for the streqv functions
|
|
* streqvmap - Set the character mappings for the streqv functions
|
|
*
|
|
*
|
|
@@ -880,10 +942,10 @@ extern int streqvcmp( char const*, char const* );
|
|
* This function name is mapped to option_streqvmap so as to not conflict
|
|
* This function name is mapped to option_streqvmap so as to not conflict
|
|
* with the POSIX name space.
|
|
* with the POSIX name space.
|
|
*/
|
|
*/
|
|
-extern void streqvmap( char, char, int );
|
|
|
|
|
|
+extern void streqvmap(char, char, int);
|
|
|
|
|
|
|
|
|
|
-/* From: streqvcmp.c line 77
|
|
|
|
|
|
+/* From: streqvcmp.c line 78
|
|
*
|
|
*
|
|
* strneqvcmp - compare two strings with an equivalence mapping
|
|
* strneqvcmp - compare two strings with an equivalence mapping
|
|
*
|
|
*
|
|
@@ -901,10 +963,10 @@ extern void streqvmap( char, char, int );
|
|
* This function name is mapped to option_strneqvcmp so as to not conflict
|
|
* This function name is mapped to option_strneqvcmp so as to not conflict
|
|
* with the POSIX name space.
|
|
* with the POSIX name space.
|
|
*/
|
|
*/
|
|
-extern int strneqvcmp( char const*, char const*, int );
|
|
|
|
|
|
+extern int strneqvcmp(char const*, char const*, int);
|
|
|
|
|
|
|
|
|
|
-/* From: streqvcmp.c line 234
|
|
|
|
|
|
+/* From: streqvcmp.c line 235
|
|
*
|
|
*
|
|
* strtransform - convert a string into its mapped-to value
|
|
* strtransform - convert a string into its mapped-to value
|
|
*
|
|
*
|
|
@@ -916,55 +978,65 @@ extern int strneqvcmp( char const*, char const*, int );
|
|
* character is put into the output.
|
|
* character is put into the output.
|
|
* This function name is mapped to option_strtransform so as to not conflict
|
|
* This function name is mapped to option_strtransform so as to not conflict
|
|
* with the POSIX name space.
|
|
* with the POSIX name space.
|
|
|
|
+ *
|
|
|
|
+ * The source and destination may be the same.
|
|
*/
|
|
*/
|
|
-extern void strtransform( char*, char const* );
|
|
|
|
|
|
+extern void strtransform(char*, char const*);
|
|
|
|
|
|
/* AutoOpts PRIVATE FUNCTIONS: */
|
|
/* AutoOpts PRIVATE FUNCTIONS: */
|
|
tOptProc optionStackArg, optionUnstackArg, optionBooleanVal, optionNumericVal;
|
|
tOptProc optionStackArg, optionUnstackArg, optionBooleanVal, optionNumericVal;
|
|
|
|
|
|
-extern char* ao_string_cook( char*, int* );
|
|
|
|
|
|
+extern char* ao_string_cook(char*, int*);
|
|
|
|
+
|
|
|
|
+extern unsigned int ao_string_cook_escape_char(char const*, char*, unsigned int);
|
|
|
|
+
|
|
|
|
+extern void export_options_to_guile(tOptions*);
|
|
|
|
+
|
|
|
|
+extern void genshelloptUsage(tOptions*, int);
|
|
|
|
+
|
|
|
|
+extern void optionBooleanVal(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern unsigned int ao_string_cook_escape_char( char const*, char*, unsigned int );
|
|
|
|
|
|
+extern uintptr_t optionEnumerationVal(tOptions*, tOptDesc*, char const * const *, unsigned int);
|
|
|
|
|
|
-extern void export_options_to_guile( tOptions* );
|
|
|
|
|
|
+extern void optionFileCheck(tOptions*, tOptDesc*, teOptFileType, tuFileMode);
|
|
|
|
|
|
-extern void genshelloptUsage( tOptions*, int );
|
|
|
|
|
|
+extern char const* optionKeywordName(tOptDesc*, unsigned int);
|
|
|
|
|
|
-extern void optionBooleanVal( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionLoadOpt(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern uintptr_t optionEnumerationVal( tOptions*, tOptDesc*, char const * const *, unsigned int );
|
|
|
|
|
|
+extern ag_bool optionMakePath(char*, int, char const*, char const*);
|
|
|
|
|
|
-extern char const* optionKeywordName( tOptDesc*, unsigned int );
|
|
|
|
|
|
+extern void optionNestedVal(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionLoadOpt( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionNumericVal(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern ag_bool optionMakePath( char*, int, char const*, char const* );
|
|
|
|
|
|
+extern void optionPagedUsage(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionNestedVal( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionParseShell(tOptions*);
|
|
|
|
|
|
-extern void optionNumericVal( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionPrintVersion(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionPagedUsage( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionPutShell(tOptions*);
|
|
|
|
|
|
-extern void optionParseShell( tOptions* );
|
|
|
|
|
|
+extern void optionResetOpt(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionPrintVersion( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionSetMembers(tOptions*, tOptDesc*, char const * const *, unsigned int);
|
|
|
|
|
|
-extern void optionPutShell( tOptions* );
|
|
|
|
|
|
+extern void optionShowRange(tOptions*, tOptDesc*, void *, int);
|
|
|
|
|
|
-extern void optionSetMembers( tOptions*, tOptDesc*, char const * const *, unsigned int );
|
|
|
|
|
|
+extern void optionStackArg(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionStackArg( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionTimeVal(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionUnstackArg( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionUnstackArg(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void optionUsage( tOptions*, int );
|
|
|
|
|
|
+extern void optionUsage(tOptions*, int);
|
|
|
|
|
|
-extern void optionVersionStderr( tOptions*, tOptDesc* );
|
|
|
|
|
|
+extern void optionVersionStderr(tOptions*, tOptDesc*);
|
|
|
|
|
|
-extern void* text_mmap( char const*, int, int, tmap_info_t* );
|
|
|
|
|
|
+extern void* text_mmap(char const*, int, int, tmap_info_t*);
|
|
|
|
|
|
-extern int text_munmap( tmap_info_t* );
|
|
|
|
|
|
+extern int text_munmap(tmap_info_t*);
|
|
|
|
|
|
CPLUSPLUS_CLOSER
|
|
CPLUSPLUS_CLOSER
|
|
#endif /* AUTOOPTS_OPTIONS_H_GUARD */
|
|
#endif /* AUTOOPTS_OPTIONS_H_GUARD */
|