-
-static inline int weak_decl_type(decl_type *type) {
- switch (type->type) {
- case PSI_T_CHAR:
- case PSI_T_SHORT:
- case PSI_T_INT:
- case PSI_T_LONG:
- case PSI_T_NAME:
- return type->type;
- default:
- return 0;
- }
-}
-
-static inline decl_type *real_decl_type(decl_type *type) {
- while (weak_decl_type(type)) {
- type = type->real.def->type;
- }
- return type;
-}
-