3 /* -*- buffer-read-only: t -*- vi: set ro:
5 * Prototypes for autoopts
6 * Generated Sat May 5 12:02:36 PDT 2007
8 #ifndef AUTOOPTS_PROTO_H_GUARD
9 #define AUTOOPTS_PROTO_H_GUARD 1
12 # define REDEF_LOCAL 1
16 /*\n * Extracted from autoopts.c\n */
18 ao_malloc( size_t sz
);
21 ao_realloc( void *p
, size_t sz
);
27 ao_strdup( char const *str
);
30 handleOption( tOptions
* pOpts
, tOptState
* pOptState
);
33 longOptionFind( tOptions
* pOpts
, char* pzOptName
, tOptState
* pOptState
);
36 shortOptionFind( tOptions
* pOpts
, uint_t optValue
, tOptState
* pOptState
);
39 doImmediateOpts( tOptions
* pOpts
);
42 doRegularOpts( tOptions
* pOpts
);
44 /*\n * Extracted from configfile.c\n */
46 internalFileLoad( tOptions
* pOpts
);
52 tOptionLoadMode
* pMode
,
53 tOptionValue
* pType
);
56 validateOptionsStruct( tOptions
* pOpts
, char const* pzProgram
);
58 /*\n * Extracted from environment.c\n */
60 doPrognameEnv( tOptions
* pOpts
, teEnvPresetType type
);
63 doEnvPresets( tOptions
* pOpts
, teEnvPresetType type
);
65 /*\n * Extracted from load.c\n */
67 mungeString( char* pzTxt
, tOptionLoadMode mode
);
75 tOptionLoadMode load_mode
);
77 /*\n * Extracted from nested.c\n */
79 optionLoadNested(char const* pzTxt
, char const* pzName
, size_t nameLen
);
81 /*\n * Extracted from sort.c\n */
83 optionSort( tOptions
* pOpts
);
85 /*\n * Extracted from stack.c\n */
87 addArgListEntry( void** ppAL
, void* entry
);
93 #endif /* AUTOOPTS_PROTO_H_GUARD */