Lines Matching defs:token
5 #include "token.h"
69 void get_char_constant(struct token *token, unsigned long long *val)
71 const char *p = token->embedded, *end;
73 int type = token_type(token);
77 p = token->string->data;
78 end = p + token->string->length - 1;
80 sparse_error(token->pos, "empty character constant");
92 type < TOKEN_WIDE_CHAR ? bits_in_char : wchar_ctype->bit_size, token->pos);
94 warning(token->pos,
99 struct token *get_string_constant(struct token *token, struct expression *expr)
101 struct string *string = token->string;
102 struct token *next = token->next, *done = NULL;
103 int stringtype = token_type(token);
122 while (token != done) {
124 const char *p = token->string->data;
125 const char *end = p + token->string->length - 1;
129 p = parse_escape(p, &v, end, bits, token->pos);
134 token = token->next;
137 warning(token->pos, "trying to concatenate %d-character string (%d bytes max)", len, MAX_STRING);
150 return token;