Lines Matching refs:next

107 static char *charstr(char *ptr, unsigned char c, unsigned char escape, unsigned char next)  in charstr()  argument
124 if (!isdigit(next)) in charstr()
460 eof_token_entry.next = &eof_token_entry; in mark_eof()
463 end->next = &eof_token_entry; in mark_eof()
474 token->next = NULL; in add_token()
476 stream->tokenlist = &token->next; in add_token()
536 static int get_one_number(int c, int next, stream_t *stream) in get_one_number() argument
544 long class = cclass[next + 1]; in get_one_number()
548 *p++ = next; in get_one_number()
549 next = nextchar(stream); in get_one_number()
551 if (next == '-' || next == '+') { in get_one_number()
553 *p++ = next; in get_one_number()
554 next = nextchar(stream); in get_one_number()
573 return next; in get_one_number()
576 static int eat_string(int next, stream_t *stream, enum token_type type) in eat_string() argument
586 for (escape = 0; escape || next != delim; next = nextchar(stream)) { in eat_string()
588 buffer[len] = next; in eat_string()
590 if (next == '\n') { in eat_string()
596 if (next == EOF) { in eat_string()
599 return next; in eat_string()
602 if (want_hex && !(cclass[next + 1] & Hex)) in eat_string()
606 escape = next == '\\'; in eat_string()
609 want_hex = next == 'x'; in eat_string()
659 int next; in drop_stream_comment() local
663 next = nextchar(stream); in drop_stream_comment()
665 int curr = next; in drop_stream_comment()
670 next = nextchar(stream); in drop_stream_comment()
671 if (curr == '*' && next == '/') in drop_stream_comment()
743 int next, value, i; in get_one_special() local
745 next = nextchar(stream); in get_one_special()
752 if (next >= '0' && next <= '9') in get_one_special()
753 return get_one_number(c, next, stream); in get_one_special()
756 return eat_string(next, stream, TOKEN_STRING); in get_one_special()
758 return eat_string(next, stream, TOKEN_CHAR); in get_one_special()
760 if (next == '/') in get_one_special()
762 if (next == '*') in get_one_special()
770 if (cclass[next + 1] & ValidSecond) { in get_one_special()
771 i = special_hash(c, next); in get_one_special()
772 if (hash_results[i][0] == c && hash_results[i][1] == next) { in get_one_special()
774 next = nextchar(stream); in get_one_special()
776 next == "==."[value - SPECIAL_LEFTSHIFT]) { in get_one_special()
778 next = nextchar(stream); in get_one_special()
788 return next; in get_one_special()
819 ident = ident->next; in show_identifier_stats()
844 ident->next = hash_table[hash]; in insert_hash()
859 goto next; in create_hashed_ident()
864 next: in create_hashed_ident()
866 p = &ident->next; in create_hashed_ident()
870 ident->next = NULL; in create_hashed_ident()
918 int next; in get_one_identifier() local
923 next = nextchar(stream); in get_one_identifier()
924 if (!(cclass[next + 1] & (Letter | Digit))) in get_one_identifier()
928 hash = ident_hash_add(hash, next); in get_one_identifier()
929 buf[len] = next; in get_one_identifier()
932 if (cclass[next + 1] & Quote) { in get_one_identifier()
934 if (next == '\'') in get_one_identifier()
950 return next; in get_one_identifier()
982 stream->tokenlist = &begin->next; in setup_stream()
1030 end->next = endtoken; in tokenize()