Lines Matching refs:as

126 check_option(struct assignment *as)
138 for(a = as; a != NULL; a = a->next) {
159 ex(as, "neither long nor short option");
163 ex(as, "either of long or name option must be used");
167 ex(as, "multiple long options");
171 ex(as, "multiple short options");
175 ex(as, "multiple types");
179 ex(as, "multiple arguments");
183 ex(as, "multiple help strings");
187 ex(as, "multiple default values");
194 check_command(struct assignment *as)
204 for(a = as; a != NULL; a = a->next) {
225 ex(as, "no command name");
229 ex(as, "multiple function names");
233 ex(as, "multiple help strings");
237 ex(as, "multiple argument strings");
241 ex(as, "multiple min_args strings");
245 ex(as, "multiple max_args strings");
253 check(struct assignment *as)
257 for(a = as; a != NULL; a = a->next) {
274 find_next(struct assignment *as, const char *name)
276 for(as = as->next; as != NULL; as = as->next) {
277 if(strcmp(as->name, name) == 0)
278 return as;
284 find(struct assignment *as, const char *name)
286 for(; as != NULL; as = as->next) {
287 if(strcmp(as->name, name) == 0)
288 return as;
322 gen_command(struct assignment *as)
326 a = find(as, "name");
332 b = find(as, "argument");
337 b = find(as, "help");
359 make_name(struct assignment *as)
365 lopt = find(as, "long");
367 lopt = find(as, "name");
371 type = find(as, "type");
487 gen_wrapper(struct assignment *as)
498 name = find(as, "name");
501 arg = find(as, "argument");
504 opt1 = find(as, "option");
505 function = find(as, "function");
527 for(tmp = find(as, "option");
565 for(tmp = find(as, "option");
581 for(tmp = find(as, "option");
600 if((tmp = find(as, "min_args")) != NULL) {
611 if((tmp = find(as, "max_args")) != NULL) {
654 for(tmp = find(as, "option");
673 for(tmp = find(as, "option");
695 gen(struct assignment *as)
708 for(a = as; a != NULL; a = a->next)
712 for(a = as; a != NULL; a = a->next)