Lines Matching +defs:name +defs:text
20 * 4. The name of the author may not be used to endorse or promote products
83 #define kwdef(name, token, detail, since, gcc, deco) \
85 name, token, detail, \
92 #define kwdef_token(name, token, since, gcc, deco) \
93 kwdef(name, token, {false}, since, gcc, deco)
94 #define kwdef_sclass(name, sclass, since, gcc, deco) \
95 kwdef(name, T_SCLASS, .u.kw_scl = (sclass), since, gcc, deco)
96 #define kwdef_type(name, tspec, since) \
97 kwdef(name, T_TYPE, .u.kw_tspec = (tspec), since, 0, 1)
98 #define kwdef_tqual(name, tqual, since, gcc, deco) \
99 kwdef(name, T_QUAL, .u.kw_tqual = {.tqual = true}, since, gcc, deco)
100 #define kwdef_const(name, named_constant, since, gcc, deco) \
101 kwdef(name, T_NAMED_CONSTANT, \
103 #define kwdef_keyword(name, token) \
104 kwdef(name, token, {false}, 78, 0, 1)
124 bool kw_plain:1; /* 'name' */
244 symtab_search(const char *name)
247 unsigned int h = hash(name);
249 if (strcmp(sym->s_name, name) != 0)
357 const char *name;
359 name = kw->kw_name;
364 name = xstrdup(buf);
368 sym->s_name = name;
467 * Look up the definition of a name in the symbol table. This symbol must
472 lex_name(const char *text, size_t len)
475 sym_t *sym = symtab_search(text);
490 char *name = block_zero_alloc(len + 1, "string");
491 (void)memcpy(name, text, len + 1);
492 sb->sb_name = name;
551 lex_integer_constant(const char *text, size_t len, int base)
553 const char *cp = text;
630 lex_floating_constant(const char *text, size_t len)
632 const char *cp = text;
1052 * The first directive of the preprocessed translation unit provides the name
1119 check_stmt_macro(const char *text)
1121 const char *p = text;
1159 lex_pp_identifier(const char *text)
1161 debug_step("%s '%s'", __func__, text);
1162 buf_add(&pp_line, text);
1166 lex_pp_number(const char *text)
1168 debug_step("%s '%s'", __func__, text);
1169 buf_add(&pp_line, text);
1191 lex_pp_punctuator(const char *text)
1193 debug_step("%s '%s'", __func__, text);
1194 buf_add(&pp_line, text);
1225 const char *text = pp_line.data;
1227 while (len > 0 && text[len - 1] == ' ')
1229 debug_step("%s '%.*s'", __func__, (int)len, text);
1231 const char *p = text;
1240 if (text[len - 1] == ';')
1259 const char name[13];
1302 if (strcmp(keywtab[i].name, keywd) == 0)
1452 * During member declaration it is possible that name() looked for
1510 * Construct a temporary symbol. The symbol name starts with a digit to avoid
1511 * name clashes with other identifiers.
1606 /* Create a new symbol with the same name as an existing symbol. */
1631 fill_token(int tk, const char *text, token *tok)
1645 tok->u.identifier = xstrdup(text);
1655 tok->u.punctuator = xstrdup(text);