Lines Matching refs:lo
188 struct longopts *lo; in gotflag() local
192 for (lo = gof->longopts; lo->opt != opt; lo = lo->next); in gotflag()
193 help_exit("%s--%.*s", s, lo->len, lo->str); in gotflag()
273 struct longopts *lo; in parse_optflaglist() local
280 lo = xmalloc(sizeof(struct longopts)); in parse_optflaglist()
281 lo->next = gof->longopts; in parse_optflaglist()
282 lo->opt = new; in parse_optflaglist()
283 lo->str = options; in parse_optflaglist()
284 lo->len = end-options; in parse_optflaglist()
285 gof->longopts = lo; in parse_optflaglist()
411 struct longopts *lo; in get_optflags() local
421 for (lo = gof.longopts; lo; lo = lo->next) { in get_optflags()
422 if (!strncmp(gof.arg, lo->str, lo->len)) { in get_optflags()
423 if (!gof.arg[lo->len]) gof.arg = 0; in get_optflags()
424 else if (gof.arg[lo->len] == '=' && lo->opt->type) in get_optflags()
425 gof.arg += lo->len; in get_optflags()
428 catch = lo->opt; in get_optflags()
434 if (!lo && gof.noerror) { in get_optflags()