Lines Matching refs:next

250 		token = token->next;  in scan_next()
258 struct token *next; in expand_list() local
259 while (!eof_token(next = scan_next(list))) { in expand_list()
260 if (token_type(next) != TOKEN_IDENT || expand_one_symbol(list)) in expand_list()
261 list = &next->next; in expand_list()
270 struct token **p = &prev->next; in collect_arg()
271 struct token *next; in collect_arg() local
274 while (!eof_token(next = scan_next(p))) { in collect_arg()
275 if (next->pos.newline && match_op(next, '#')) { in collect_arg()
276 if (!next->pos.noexpand) { in collect_arg()
277 sparse_error(next->pos, in collect_arg()
280 __free_token(next); /* Free the '#' token */ in collect_arg()
284 switch (token_type(next)) { in collect_arg()
288 return next; in collect_arg()
292 next->string->immutable = 1; in collect_arg()
296 *p = next->next; in collect_arg()
297 __free_token(next); in collect_arg()
300 if (match_op(next, '(')) { in collect_arg()
302 } else if (match_op(next, ')')) { in collect_arg()
305 } else if (match_op(next, ',') && !nesting && !vararg) { in collect_arg()
308 next->pos.stream = pos->stream; in collect_arg()
309 next->pos.line = pos->line; in collect_arg()
310 next->pos.pos = pos->pos; in collect_arg()
311 p = &next->next; in collect_arg()
314 return next; in collect_arg()
333 struct token *next = NULL; in collect_arguments() local
336 arglist = arglist->next; /* skip counter */ in collect_arguments()
339 next = collect_arg(start, 0, &what->pos, 0); in collect_arguments()
340 if (eof_token(next)) in collect_arguments()
342 if (!eof_token(start->next) || !match_op(next, ')')) { in collect_arguments()
348 struct argcount *p = &arglist->next->count; in collect_arguments()
349 next = collect_arg(start, p->vararg, &what->pos, p->normal); in collect_arguments()
350 if (eof_token(next)) in collect_arguments()
352 if (p->vararg && wanted == 1 && eof_token(start->next)) in collect_arguments()
354 arglist = arglist->next->next; in collect_arguments()
355 args[count].arg = start->next; in collect_arguments()
359 if (match_op(next, ')')) { in collect_arguments()
363 start = next; in collect_arguments()
365 if (count == wanted && !match_op(next, ')')) in collect_arguments()
368 struct argcount *p = &arglist->next->count; in collect_arguments()
379 what->next = next->next; in collect_arguments()
387 while (match_op(next, ',')) { in collect_arguments()
388 next = collect_arg(next, 0, &what->pos, 0); in collect_arguments()
391 if (eof_token(next)) in collect_arguments()
400 what->next = next->next; in collect_arguments()
413 p = &newtok->next; in dup_list()
414 list = list->next; in dup_list()
440 token = token->next; in show_token_sequence()
459 token->next = &eof_token_entry; in stringify()
624 where = &token->next; in copy()
625 list = list->next; in copy()
633 struct token *t = (*p)->next->next; in handle_kludge()
636 if (token_type(t->next) != TOKEN_CONCAT) { in handle_kludge()
639 *p = (*p)->next; in handle_kludge()
648 t = t->next->next; in handle_kludge()
658 for (; !eof_token(body); body = body->next) { in substitute()
684 tail = &added->next; in substitute()
728 tail = &added->next; in substitute()
733 tail = &added->next; in substitute()
742 *list = added->next; in substitute()
743 if (tail != &added->next) in substitute()
770 if (!match_op(scan_next(&token->next), '(')) in expand()
772 if (!collect_arguments(token->next, sym->arglist, args, token)) in expand()
779 last = token->next; in expand()
807 token = token->next; in token_name_sequence()
817 int stream, next; in already_tokenized() local
819 for (stream = *hash_stream(path); stream >= 0 ; stream = next) { in already_tokenized()
822 next = s->next_stream; in already_tokenized()
943 token = token->next; in free_preprocessor_line()
1081 struct token *next; in handle_include_path() local
1086 next = token->next; in handle_include_path()
1088 if (!match_op(next, '<')) { in handle_include_path()
1089 expand_list(&token->next); in handle_include_path()
1091 next = token; in handle_include_path()
1092 if (match_op(token->next, '<')) { in handle_include_path()
1093 next = token->next; in handle_include_path()
1098 token = next->next; in handle_include_path()
1209 list1 = list1->next; in token_list_different()
1210 list2 = list2->next; in token_list_different()
1223 struct token *arg = list->next, *next = list; in parse_arguments() local
1229 next = arg->next; in parse_arguments()
1230 list->next = &eof_token_entry; in parse_arguments()
1231 return next; in parse_arguments()
1239 next = arg->next; in parse_arguments()
1241 if (match_op(next, ',')) { in parse_arguments()
1242 set_arg_count(next); in parse_arguments()
1243 arg = next->next; in parse_arguments()
1247 if (match_op(next, ')')) { in parse_arguments()
1248 set_arg_count(next); in parse_arguments()
1249 next = next->next; in parse_arguments()
1250 arg->next->next = &eof_token_entry; in parse_arguments()
1251 return next; in parse_arguments()
1256 if (match_op(next, SPECIAL_ELLIPSIS)) { in parse_arguments()
1257 if (match_op(next->next, ')')) { in parse_arguments()
1258 set_arg_count(next); in parse_arguments()
1259 next->count.vararg = 1; in parse_arguments()
1260 next = next->next; in parse_arguments()
1261 arg->next->next = &eof_token_entry; in parse_arguments()
1262 return next->next; in parse_arguments()
1265 arg = next; in parse_arguments()
1269 if (eof_token(next)) { in parse_arguments()
1272 arg = next; in parse_arguments()
1278 next = arg->next; in parse_arguments()
1281 if (!match_op(next, ')')) in parse_arguments()
1285 set_arg_count(next); in parse_arguments()
1286 next->count.vararg = 1; in parse_arguments()
1287 next = next->next; in parse_arguments()
1288 arg->next->next = &eof_token_entry; in parse_arguments()
1289 return next; in parse_arguments()
1293 arg = next; in parse_arguments()
1328 arglist = arglist->next; in try_arg()
1330 for (nr = 0; !eof_token(arglist); nr++, arglist = arglist->next->next) { in try_arg()
1332 struct argcount *count = &arglist->next->count; in try_arg()
1364 struct token *next = token->next; in handle_hash() local
1365 if (!try_arg(next, TOKEN_STR_ARGUMENT, arglist)) in handle_hash()
1367 next->pos.whitespace = token->pos.whitespace; in handle_hash()
1369 token = *p = next; in handle_hash()
1394 concat = token->next; in handle_hashhash()
1395 while (match_op(t = concat->next, SPECIAL_HASHHASH)) { in handle_hashhash()
1396 token->next = t; in handle_hashhash()
1406 t = handle_hash(&concat->next, arglist); in handle_hashhash()
1421 if (!match_op(token->next, SPECIAL_HASHHASH)) in handle_hashhash()
1442 for (p = &expansion; !eof_token(token); p = &token->next, token = *p) { in parse_expansion()
1448 if (match_op(token->next, SPECIAL_HASHHASH)) { in parse_expansion()
1468 token->next = *p; in parse_expansion()
1565 value->next = &eof_token_entry; in predefine()
1582 struct token *left = token->next; in do_handle_define()
1593 expansion = left->next; in do_handle_define()
1626 struct token *left = token->next; in do_handle_undef()
1668 free_preprocessor_line(token->next); in preprocessor_if()
1669 token->next = stream->top_if; in preprocessor_if()
1678 struct token *next = token->next; in handle_ifdef() local
1680 if (token_type(next) == TOKEN_IDENT) { in handle_ifdef()
1681 arg = token_defined(next); in handle_ifdef()
1693 struct token *next = token->next; in handle_ifndef() local
1695 if (token_type(next) == TOKEN_IDENT) { in handle_ifndef()
1699 stream->protect = next->ident; in handle_ifndef()
1700 } else if (stream->protect == next->ident) { in handle_ifndef()
1705 arg = !token_defined(next); in handle_ifndef()
1775 *list = p->next; in expression_value()
1795 if (!match_op(p->next, ')')) in expression_value()
1807 *list = p->next; in expression_value()
1810 list = &p->next; in expression_value()
1824 value = expression_value(&token->next); in handle_if()
1854 if (!expression_value(&token->next)) in handle_elif()
1899 stream->top_if = top_if->next; in handle_endif()
1906 warning(token->pos, "%s", show_token_sequence(token->next, 0)); in handle_warning()
1912 sparse_error(token->pos, "%s", show_token_sequence(token->next, 0)); in handle_error()
1963 const char *next; in add_path_entry() local
1976 next = path; in add_path_entry()
1987 *dst = next; in add_path_entry()
1988 next = tmp; in add_path_entry()
1990 } while (next); in add_path_entry()
1996 token = token->next; in handle_add_include()
2010 token = token->next; in handle_add_isystem()
2024 token = token->next; in handle_add_system()
2055 token = token->next; in handle_add_dirafter()
2099 struct token *next = *line; in handle_pragma() local
2101 if (match_ident(token->next, &once_ident) && eof_token(token->next->next)) { in handle_pragma()
2110 token->next = next; in handle_pragma()
2208 struct token *token = start->next; in handle_preprocessor_line()
2242 struct token *start = *line, *next; in preprocessor_line() local
2243 struct token **tp = &start->next; in preprocessor_line()
2246 next = *tp; in preprocessor_line()
2247 if (next->pos.newline) in preprocessor_line()
2249 tp = &next->next; in preprocessor_line()
2251 *line = next; in preprocessor_line()
2258 struct token *next; in do_preprocess() local
2260 while (!eof_token(next = scan_next(list))) { in do_preprocess()
2261 struct stream *stream = input_streams + next->pos.stream; in do_preprocess()
2263 if (next->pos.newline && match_op(next, '#')) { in do_preprocess()
2264 if (!next->pos.noexpand) { in do_preprocess()
2266 __free_token(next); /* Free the '#' token */ in do_preprocess()
2271 switch (token_type(next)) { in do_preprocess()
2281 *list = next->next; in do_preprocess()
2285 *list = next->next; in do_preprocess()
2292 *list = next->next; in do_preprocess()
2293 __free_token(next); in do_preprocess()
2297 if (token_type(next) != TOKEN_IDENT || in do_preprocess()
2299 list = &next->next; in do_preprocess()
2366 for (; !eof_token(token); token = token->next) { in dump_macro()
2381 struct token *next = token->next; in dump_macro() local
2398 token = next; in dump_macro()