Lines Matching defs:opt
129 struct parse_opt *opt = calloc (1, sizeof (*opt));
130 if (opt == NULL)
132 state->hook = opt;
142 struct parse_opt *opt = state->hook;
143 Dwfl *dwfl = opt->dwfl;
149 opt->dwfl = dwfl;
162 opt->e = arg;
168 struct parse_opt *opt = state->hook;
169 if (opt->dwfl == NULL)
179 opt->dwfl = dwfl;
188 struct parse_opt *opt = state->hook;
189 if (opt->dwfl == NULL)
204 opt->dwfl = dwfl;
213 struct parse_opt *opt = state->hook;
214 Dwfl *dwfl = opt->dwfl;
216 opt->dwfl = dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
220 opt->core = arg;
226 struct parse_opt *opt = state->hook;
227 if (opt->dwfl == NULL)
237 opt->dwfl = dwfl;
246 struct parse_opt *opt = state->hook;
247 if (opt->dwfl == NULL)
254 opt->dwfl = dwfl;
263 struct parse_opt *opt = state->hook;
264 Dwfl *dwfl = opt->dwfl;
273 opt->dwfl = dwfl;
276 if (opt->core)
278 int fd = open (opt->core, O_RDONLY);
283 "cannot open '%s'", opt->core);
297 int result = INTUSE(dwfl_core_file_report) (dwfl, core, opt->e);
302 return fail (dwfl, result, opt->core, state);
329 else if (opt->e)
331 if (INTUSE(dwfl_report_offline) (dwfl, "", opt->e, -1) == NULL)
332 return fail (dwfl, -1, opt->e, state);
346 free (opt);
353 struct parse_opt *opt = state->hook;
354 dwfl_end (opt->dwfl);
355 free (opt);
365 struct parse_opt *opt = state->hook;
366 if (opt)
367 *(Dwfl **) state->input = opt->dwfl;