Lines Matching refs:token
175 char *token = currtok(); in comment() local
177 if (token == NULL || *token != '#') { in comment()
181 token = nexttok(); in comment()
189 char *token = currtok(); in arch_name() local
193 token ? token : "<NULL>"); in arch_name()
195 if (token == NULL) { in arch_name()
199 } else if (in_specials(*token)) { in arch_name()
206 *token); in arch_name()
214 } else if (!eq(token, TargetArchStr)) { in arch_name()
216 errlog(VERBOSE, "Begin unselected architecture: %s", token); in arch_name()
217 add_valid_arch(token); in arch_name()
226 errlog(VERBOSE, "Begin selected architecture: %s", token); in arch_name()
227 add_valid_arch(token); in arch_name()
240 char *token = currtok(); in set_list() local
244 (token) ? token : "<NULL>"); in set_list()
267 char *token = currtok(); in set() local
272 (token) ? token : "<NULL>"); in set()
274 if (in_specials(*token)) { in set()
276 "Version name expected", token); in set()
282 errlog(VERBOSE, "Begin Version: %s", token); in set()
285 if (add_parent(token, Previous, 0) == FALSE) { in set()
294 add_valid_version(token); in set()
295 (void) strncpy(LeftMostChild, token, MAXLINE); in set()
297 (void) strncpy(Previous, token, MAXLINE); in set()
300 token = nexttok(); in set()
302 switch (*token) { in set()
333 token = currtok(); in set()
334 if (eq(token, ":")) { in set()
337 } else if (eq(token, ";")) { in set()
342 "or ';' expected.", token); in set()
367 token); in set()
373 token = currtok(); in set()
374 if (eq(token, "}")) { in set()
388 char *token = currtok(); in set_parents() local
393 (token) ? token : "<NULL>"); in set_parents()
397 token); in set_parents()
403 token = currtok(); in set_parents()
405 if (in_specials(*token)) { in set_parents()
407 "found. Version token expected", *token); in set_parents()
414 while (token && *token != '}') { in set_parents()
415 errlog(VERBOSE, "Begin parent list: %s\n", token); in set_parents()
418 (void) add_uncle(token, LeftMostChild, 0); in set_parents()
420 (void) add_parent(token, Previous, 0); in set_parents()
422 (void) strncpy(Previous, token, MAXLINE); in set_parents()
423 add_valid_version(token); in set_parents()
426 token = nexttok(); in set_parents()
428 if (*token == ',') { in set_parents()
429 token = nexttok(); in set_parents()
435 if (*token == '}') { in set_parents()
447 "found. ',' or '}' were expected", token); in set_parents()
468 char *token = currtok(); in accept_token() local
472 (token) ? token : "<NULL>", expected); in accept_token()
474 if (token == NULL) { in accept_token()
478 if (eq(token, expected)) { in accept_token()
484 (token) ? token : "<NULL>", expected); in accept_token()
493 char *token = currtok(); in skip_to() local
496 while (token && !eq(token, target)) { in skip_to()
498 (token) ? token : "<NULL>"); in skip_to()
499 token = nexttok(); in skip_to()