3 /* -*- buffer-read-only: t -*- vi: set ro:
5 * Prototypes for autoopts
6 * Generated Sun Nov 8 08:41:10 PST 2009
8 #ifndef AUTOOPTS_PROTO_H_GUARD
9 #define AUTOOPTS_PROTO_H_GUARD 1
13 # define REDEF_LOCAL 1
18 * Extracted from autoopts.c
21 ao_malloc( size_t sz
);
24 ao_realloc( void *p
, size_t sz
);
30 ao_strdup( char const *str
);
33 handleOption( tOptions
* pOpts
, tOptState
* pOptState
);
36 longOptionFind( tOptions
* pOpts
, char* pzOptName
, tOptState
* pOptState
);
39 shortOptionFind( tOptions
* pOpts
, uint_t optValue
, tOptState
* pOptState
);
42 doImmediateOpts( tOptions
* pOpts
);
45 doRegularOpts( tOptions
* pOpts
);
48 * Extracted from configfile.c
51 internalFileLoad( tOptions
* pOpts
);
57 tOptionLoadMode
* pMode
,
58 tOptionValue
* pType
);
61 validateOptionsStruct( tOptions
* pOpts
, char const* pzProgram
);
64 * Extracted from environment.c
67 doPrognameEnv( tOptions
* pOpts
, teEnvPresetType type
);
70 doEnvPresets( tOptions
* pOpts
, teEnvPresetType type
);
73 * Extracted from load.c
76 mungeString( char* pzTxt
, tOptionLoadMode mode
);
84 tOptionLoadMode load_mode
);
87 * Extracted from nested.c
90 optionLoadNested(char const* pzTxt
, char const* pzName
, size_t nameLen
);
93 get_special_char(char const ** ppz
, int * ct
);
96 emit_special_char(FILE * fp
, int ch
);
99 * Extracted from sort.c
102 optionSort( tOptions
* pOpts
);
105 * Extracted from stack.c
108 addArgListEntry( void** ppAL
, void* entry
);
114 #endif /* AUTOOPTS_PROTO_H_GUARD */