1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * Prototypes for autoopts
4 * Generated Sat Apr 25 09:53:18 PDT 2015
6 #ifndef AUTOOPTS_PROTO_H_GUARD
7 #define AUTOOPTS_PROTO_H_GUARD 1
10 * Extracted from alias.c
13 too_many_occurrences(tOptions * opts, tOptDesc * od);
16 * Extracted from autoopts.c
22 ao_realloc(void *p, size_t sz);
25 ao_strdup(char const *str);
28 handle_opt(tOptions * opts, tOptState * o_st);
31 next_opt(tOptions * opts, tOptState * o_st);
34 regular_opts(tOptions * opts);
37 * Extracted from check.c
40 is_consistent(tOptions * pOpts);
43 * Extracted from configfile.c
46 intern_file_load(tOptions * opts);
49 parse_attrs(tOptions * opts, char const * txt, tOptionLoadMode * pMode,
50 tOptionValue * pType);
53 * Extracted from env.c
56 doPrognameEnv(tOptions * pOpts, teEnvPresetType type);
59 env_presets(tOptions * pOpts, teEnvPresetType type);
62 * Extracted from find.c
65 opt_find_long(tOptions * opts, char const * opt_name, tOptState * state);
68 opt_find_short(tOptions * pOpts, uint_t optValue, tOptState * pOptState);
71 get_opt_arg(tOptions * opts, tOptState * o_st);
74 find_opt(tOptions * opts, tOptState * o_st);
77 * Extracted from init.c
80 validate_struct(tOptions * opts, char const * pname);
83 immediate_opts(tOptions * opts);
86 ao_initialize(tOptions * opts, int a_ct, char ** a_v);
89 * Extracted from load.c
92 munge_str(char * txt, tOptionLoadMode mode);
95 load_opt_line(tOptions * opts, tOptState * opt_state, char * line,
96 tDirection direction, tOptionLoadMode load_mode );
99 * Extracted from makeshell.c
102 option_exits(int exit_code);
105 ao_bug(char const * msg);
108 fserr_warn(char const * prog, char const * op, char const * fname);
111 fserr_exit(char const * prog, char const * op, char const * fname);
114 * Extracted from nested.c
117 unload_arg_list(tArgList * arg_list);
119 static tOptionValue *
120 optionLoadNested(char const * text, char const * name, size_t nm_len);
123 get_special_char(char const ** ppz, int * ct);
126 emit_special_char(FILE * fp, int ch);
129 * Extracted from sort.c
132 optionSort(tOptions * opts);
135 * Extracted from stack.c
138 addArgListEntry(void ** ppAL, void * entry);
141 * Extracted from usage.c
144 set_usage_flags(tOptions * opts, char const * flg_txt);
146 #endif /* AUTOOPTS_PROTO_H_GUARD */