- declaration = unit->scope.declarations;
- for( ; declaration != NULL; declaration = declaration->next) {
- if(declaration->namespc != NAMESPACE_NORMAL)
- continue;
- if(declaration->storage_class == STORAGE_CLASS_TYPEDEF
- || declaration->storage_class == STORAGE_CLASS_ENUM_ENTRY)
- continue;
-
- type_t *type = declaration->type;
- if(type->kind != TYPE_FUNCTION)
+ entity = unit->scope.entities;
+ for( ; entity != NULL; entity = entity->base.next) {
+ if (entity->kind != ENTITY_FUNCTION)