Lines Matching defs:ident
589 sym->ident->keyword = 1;
590 sym->ident->reserved |= (ns == NS_TYPEDEF);
610 sym->ident->keyword = 1;
707 struct symbol *sym = lookup_symbol(token->ident, NS_LABEL);
710 bind_symbol(sym, token->ident, NS_LABEL);
728 sym = lookup_symbol(token->ident, NS_STRUCT);
735 bind_symbol(sym, token->ident, NS_STRUCT);
783 if (!field->ident) {
950 bind_symbol(sym, token->ident, NS_SYMBOL);
1149 static struct ident *numerical_address_space(int asn)
1162 struct ident *as = NULL;
1175 as = token->ident;
1257 struct symbol *mode = lookup_keyword(token->ident, NS_KEYWORD);
1261 sparse_error(token->pos, "unknown mode attribute %s", show_ident(token->ident));
1320 warning(token->pos, "unknown attribute '%s'", show_ident(token->ident));
1333 struct symbol *attr = lookup_keyword(token->ident, NS_KEYWORD);
1454 static void specifier_conflict(struct position pos, int what, struct ident *new)
1508 struct symbol *s = lookup_keyword(t->ident, NS_TYPEDEF);
1527 struct symbol *s = lookup_symbol(token->ident,
1544 token->ident);
1605 struct symbol *sym = lookup_keyword(token->ident, NS_TYPEDEF);
1634 keyword = lookup_keyword(token->ident, NS_KEYWORD);
1655 sym = lookup_keyword(token->ident, NS_TYPEDEF);
1735 struct ident **n,
1777 struct ident **p = ctx->ident;
1779 if (ctx->ident && token_type(token) == TOKEN_IDENT) {
1780 *ctx->ident = token->ident;
1865 if (width < 0 || width > INT_MAX || (*ctx->ident && width == 0)) {
1867 show_ident(*ctx->ident), width);
1869 } else if (*ctx->ident) {
1888 bitfield->ident = *ctx->ident;
1903 ctx.ident = &decl->ident;
1947 ctx.ident = &sym->ident;
1995 op->name = token->next->next->ident;
2042 struct symbol *s = lookup_keyword(token->ident, NS_TYPEDEF);
2045 else if (token->ident == &goto_ident)
2234 const char *name = show_ident(sym->ident);
2299 if (token_type(token) == TOKEN_IDENT && token->ident == &while_ident)
2322 if (token->ident != &else_ident)
2350 struct symbol *target = lookup_symbol(token->ident, NS_ITERATOR);
2368 static void warn_label_usage(struct position def, struct position use, struct ident *ident)
2370 const char *id = show_ident(ident);
2382 warn_label_usage(def->pos, use_pos, label->ident);
2455 struct symbol *s = lookup_keyword(token->ident, NS_KEYWORD);
2463 sparse_error(stmt->pos, "label '%s' redefined", show_ident(s->ident));
2472 warn_label_usage(stmt->pos, s->label_pos, s->ident);
2493 /* gcc extension - __label__ ident-list; in the beginning of compound stmt */
2499 bind_symbol_with_scope(sym, token->ident, NS_LABEL, block_scope);
2513 token->ident == &__label___ident)
2546 sym->ident = token->ident;
2577 if (!*list && !sym->ident)
2601 expr->expr_ident = token->ident;
2721 if (!sym->ident) {
2730 show_ident(sym->ident));
2733 bind_symbol(sym, sym->ident, NS_SYMBOL);
2758 warning(decl->pos, "function '%s' with external linkage has definition", show_ident(decl->ident));
2780 show_ident(decl->ident));
2792 warning(decl->pos, "function '%s' has computed goto but no targets?", show_ident(decl->ident));
2820 if (type->ident == arg->ident)
2825 show_ident(arg->ident));
2828 type->ident = arg->ident;
2840 warning(arg->pos, "nonsensical parameter declaration '%s'", show_ident(arg->ident));
2851 warning(token->pos, "non-ANSI definition of function '%s'", show_ident(decl->ident));
2890 struct ident *ident = NULL;
2892 struct decl_state ctx = { .ident = &ident };
2900 struct symbol *s = lookup_keyword(token->ident, NS_KEYWORD);
2926 if (!ident) {
2938 bind_symbol(decl, ident, is_typedef ? NS_TYPEDEF: NS_SYMBOL);
2943 if (base_type && !base_type->ident) {
2949 base_type->ident = ident;
2958 show_ident(decl->ident));
2963 show_ident(decl->ident));
2981 warning(decl->pos, "'%s' has implicit type", show_ident(decl->ident));
3037 ident = NULL;
3048 if (!ident) {
3056 bind_symbol(decl, ident, is_typedef ? NS_TYPEDEF: NS_SYMBOL);