-/*
- if (D->defs) {
- for (i = 0; i < D->defs->count; ++i) {
- if (validate_decl_typedef(PSI_DATA(C), D->defs->list[i])) {
- C->defs = add_decl_typedef(C->defs, D->defs->list[i]);
- } else {
- check_defs = add_decl_typedef(check_defs, D->defs->list[i]);
- }
- }
- }
- if (D->structs) {
- for (i = 0; i < D->structs->count; ++i) {
- if (validate_decl_struct(PSI_DATA(C), D->structs->list[i])) {
- C->structs = add_decl_struct(C->structs, D->structs->list[i]);
- } else {
- check_structs = add_decl_struct(check_structs, D->structs->list[i]);
- }
- }
- }
- if (D->enums) {
- for (i = 0; i < D->enums->count; ++i) {
- if (validate_decl_enum(PSI_DATA(C), D->enums->list[i])) {
- C->enums = add_decl_enum(C->enums, D->enums->list[i]);
- } else {
- check_enums = add_decl_enum(check_enums, D->enums->list[i]);
- }
- }
- }
-*/