1 /* -*- buffer-read-only: t -*- vi: set ro: 2 * 3 * Prototypes for autoopts 4 * Generated Sat May 5 12:02:36 PDT 2007 5 */ 6 #ifndef AUTOOPTS_PROTO_H_GUARD 7 #define AUTOOPTS_PROTO_H_GUARD 1 8 #ifndef LOCAL 9 # define LOCAL extern 10 # define REDEF_LOCAL 1 11 #else 12 # undef REDEF_LOCAL 13 #endif 14 /*\n * Extracted from autoopts.c\n */ 15 LOCAL void * 16 ao_malloc( size_t sz ); 17 18 LOCAL void * 19 ao_realloc( void *p, size_t sz ); 20 21 LOCAL void 22 ao_free( void *p ); 23 24 LOCAL char * 25 ao_strdup( char const *str ); 26 27 LOCAL tSuccess 28 handleOption( tOptions* pOpts, tOptState* pOptState ); 29 30 LOCAL tSuccess 31 longOptionFind( tOptions* pOpts, char* pzOptName, tOptState* pOptState ); 32 33 LOCAL tSuccess 34 shortOptionFind( tOptions* pOpts, uint_t optValue, tOptState* pOptState ); 35 36 LOCAL tSuccess 37 doImmediateOpts( tOptions* pOpts ); 38 39 LOCAL tSuccess 40 doRegularOpts( tOptions* pOpts ); 41 42 /*\n * Extracted from configfile.c\n */ 43 LOCAL void 44 internalFileLoad( tOptions* pOpts ); 45 46 LOCAL char* 47 parseAttributes( 48 tOptions* pOpts, 49 char* pzText, 50 tOptionLoadMode* pMode, 51 tOptionValue* pType ); 52 53 LOCAL tSuccess 54 validateOptionsStruct( tOptions* pOpts, char const* pzProgram ); 55 56 /*\n * Extracted from environment.c\n */ 57 LOCAL void 58 doPrognameEnv( tOptions* pOpts, teEnvPresetType type ); 59 60 LOCAL void 61 doEnvPresets( tOptions* pOpts, teEnvPresetType type ); 62 63 /*\n * Extracted from load.c\n */ 64 LOCAL void 65 mungeString( char* pzTxt, tOptionLoadMode mode ); 66 67 LOCAL void 68 loadOptionLine( 69 tOptions* pOpts, 70 tOptState* pOS, 71 char* pzLine, 72 tDirection direction, 73 tOptionLoadMode load_mode ); 74 75 /*\n * Extracted from nested.c\n */ 76 LOCAL tOptionValue* 77 optionLoadNested(char const* pzTxt, char const* pzName, size_t nameLen); 78 79 /*\n * Extracted from sort.c\n */ 80 LOCAL void 81 optionSort( tOptions* pOpts ); 82 83 /*\n * Extracted from stack.c\n */ 84 LOCAL void 85 addArgListEntry( void** ppAL, void* entry ); 86 87 #ifdef REDEF_LOCAL 88 # undef LOCAL 89 # define LOCAL 90 #endif 91 #endif /* AUTOOPTS_PROTO_H_GUARD */ 92