Lines Matching defs:ident
60 struct symbol *lookup_symbol(struct ident *ident, enum namespace ns)
64 for (sym = ident->symbols; sym; sym = sym->next_id) {
102 sparse_error(sym->pos, "flexible array member '%s' in a union", show_ident(sym->ident));
199 if (!sub->ident)
219 sparse_error(member->pos, "member '%s' has __auto_type", show_ident(member->ident));
223 sparse_error(info.flex_array->pos, "flexible array member '%s' is not last", show_ident(info.flex_array->ident));
225 if (!member->ident)
230 if (member->ident || !is_bitfield_type(member))
326 show_ident(sym->ident), sym->bit_size, show_typename(base_type));
599 sparse_error(sym->pos, "ctype on preprocessor command? (%s)", show_ident(sym->ident));
719 warning(sym->pos, "symbol '%s' shadows an earlier one", show_ident(sym->ident));
745 void bind_symbol_with_scope(struct symbol *sym, struct ident *ident, enum namespace ns, struct scope *scope)
751 if (ident->reserved && (ns & (NS_TYPEDEF | NS_STRUCT | NS_LABEL | NS_SYMBOL))) {
752 sparse_error(sym->pos, "Trying to use reserved word '%s' as identifier", show_ident(ident));
756 sym->next_id = ident->symbols;
757 ident->symbols = sym;
758 if (sym->ident && sym->ident != ident)
759 warning(sym->pos, "Symbol '%s' already bound", show_ident(sym->ident));
760 sym->ident = ident;
779 void bind_symbol(struct symbol *sym, struct ident *ident, enum namespace ns)
787 bind_symbol_with_scope(sym, ident, ns, scope);
792 struct ident *ident = built_in_ident(name);
793 struct symbol *sym = lookup_symbol(ident, namespace);
800 struct token *token = built_in_token(stream, ident);
803 bind_symbol(sym, token->ident, namespace);
849 struct ident n = __INIT_IDENT(str,res)
851 #include "ident-list.h"
859 #include "ident-list.h"