Lines Matching full:aux
54 struct _aux *aux; /* Auxiliary data about options. */ member
78 ((s->aux[i].flags & IS_LONG) ? 2 : 1); in NAME()
83 return s->aux[i].printlen; in PRINTLEN()
93 return s->aux[i].flags; in FLAGS()
160 s->aux = malloc((size_t) s->optc * sizeof (struct _aux)); in scanopt_init()
165 struct _aux *aux; in scanopt_init() local
168 aux = s->aux + i; in scanopt_init()
170 aux->flags = ARG_NONE; in scanopt_init()
173 aux->flags |= IS_LONG; in scanopt_init()
181 aux->printlen = (int) strlen (opt->opt_fmt); in scanopt_init()
183 aux->namelen = 0; in scanopt_init()
187 || !(aux->flags & IS_LONG)) { in scanopt_init()
188 if (aux->namelen == 0) in scanopt_init()
189 aux->namelen = (int) (p - pname); in scanopt_init()
190 aux->flags |= ARG_REQ; in scanopt_init()
191 aux->flags &= ~ARG_NONE; in scanopt_init()
195 if (aux->namelen == 0) in scanopt_init()
196 aux->namelen = (int) (p - pname); in scanopt_init()
197 aux->flags &= ~(ARG_REQ | ARG_NONE); in scanopt_init()
198 aux->flags |= ARG_OPT; in scanopt_init()
202 if (aux->namelen == 0) in scanopt_init()
203 aux->namelen = (int) (p - pname); in scanopt_init()
613 if (lookup_long && (s->aux[i].flags & IS_LONG)) { in find_opt()
614 if (len > s->aux[i].namelen) in find_opt()
622 if (len == s->aux[i].namelen) { in find_opt()
634 else if (!lookup_long && !(s->aux[i].flags & IS_LONG)) { in find_opt()
745 * the s->options array (and corresponding aux array). in scanopt()
755 auxp = s->aux + opt_offset; in scanopt()
807 free(s->aux); in scanopt_destroy()