Lines Matching refs:token

477     char *line, *group, *token;  in parse_options()  local
489 token = strtok(NULL, " "); in parse_options()
490 if (token == NULL) in parse_options()
492 if (strcmp(token, "=") != 0) in parse_options()
493 bail("malformed action line near %s", token); in parse_options()
494 token = strtok(NULL, ""); in parse_options()
495 split_options(token, &work->options[type], config); in parse_options()
512 parse_call(char *token, struct action *action) in parse_call() argument
517 flags = strchr(token, '('); in parse_call()
526 action->call = string_to_call(token, &action->group); in parse_call()
543 char *line, *token, *call; in parse_run() local
548 token = strtok(line, " "); in parse_run()
549 if (token[0] == '[') in parse_run()
557 next->name = bstrdup(token); in parse_run()
558 call = token; in parse_run()
559 token = strtok(NULL, " "); in parse_run()
560 if (token == NULL) in parse_run()
562 if (strcmp(token, "=") != 0) in parse_run()
563 bail("malformed action line near %s", token); in parse_run()
564 token = strtok(NULL, " "); in parse_run()
565 next->status = string_to_status(token); in parse_run()
591 char *line, *token, *flag; in parse_end() local
597 token = strtok(line, " "); in parse_end()
598 if (token[0] == '[') in parse_end()
600 if (strcmp(token, "flags") != 0) in parse_end()
601 bail("unknown end setting %s", token); in parse_end()
602 token = strtok(NULL, " "); in parse_end()
603 if (token == NULL) in parse_end()
605 if (strcmp(token, "=") != 0) in parse_end()
606 bail("malformed end line near %s", token); in parse_end()
607 token = strtok(NULL, " "); in parse_end()
608 flag = strtok(token, "|"); in parse_end()
637 char *line, *token, *message; in parse_output() local
645 token = strtok(line, " "); in parse_output()
646 priority = string_to_priority(token); in parse_output()
647 token = strtok(NULL, ""); in parse_output()
648 if (token == NULL) in parse_output()
650 message = expand_string(token, config); in parse_output()
677 char *line, *token, *style, *end; in parse_prompts() local
683 token = strtok(line, " "); in parse_prompts()
684 if (token[0] == '[') in parse_prompts()
701 style = token; in parse_prompts()
702 token = strtok(NULL, " "); in parse_prompts()
703 if (token == NULL) in parse_prompts()
705 if (strcmp(token, "=") != 0) in parse_prompts()
706 bail("malformed prompt line near %s", token); in parse_prompts()
708 token = strtok(NULL, ""); in parse_prompts()
710 prompt->prompt = expand_string(token, config); in parse_prompts()
712 end = strrchr(token, '|'); in parse_prompts()
714 bail("malformed prompt line near %s", token); in parse_prompts()
716 prompt->prompt = expand_string(token, config); in parse_prompts()
717 token = end + 1; in parse_prompts()
718 prompt->response = expand_string(token, config); in parse_prompts()
740 char *line, *token; in parse_script() local
746 token = strtok(line, " "); in parse_script()
747 if (token[0] != '[') in parse_script()
749 if (strcmp(token, "[options]") == 0) in parse_script()
751 else if (strcmp(token, "[run]") == 0) in parse_script()
753 else if (strcmp(token, "[end]") == 0) in parse_script()
755 else if (strcmp(token, "[output]") == 0) in parse_script()
757 else if (strcmp(token, "[prompts]") == 0) in parse_script()
760 bail("unknown section: %s", token); in parse_script()