X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fc-exp.y;h=e7d0a0dc4ad398f514ccb866b1cd6eb27324c3dc;hb=b7ed9f3d466700d4e766083b1e4f3a132e5fd4b4;hp=f84691a62e7aff99838680cfa91263fe61a2b5b1;hpb=596dc4adfff347b4d8dc1f7e4eb57b8f2f342281;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/c-exp.y b/gdb/c-exp.y index f84691a62e..e7d0a0dc4a 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1431,13 +1431,13 @@ scalar_type: 0); } | UNSIGNED type_name { $$ = lookup_unsigned_typename (pstate->language (), - TYPE_NAME($2.type)); } + $2.type->name ()); } | UNSIGNED { $$ = lookup_unsigned_typename (pstate->language (), "int"); } | SIGNED_KEYWORD type_name { $$ = lookup_signed_typename (pstate->language (), - TYPE_NAME($2.type)); } + $2.type->name ()); } | SIGNED_KEYWORD { $$ = lookup_signed_typename (pstate->language (), "int"); } @@ -1852,10 +1852,10 @@ typename_stoken (const char *type) static int type_aggregate_p (struct type *type) { - return (TYPE_CODE (type) == TYPE_CODE_STRUCT - || TYPE_CODE (type) == TYPE_CODE_UNION - || TYPE_CODE (type) == TYPE_CODE_NAMESPACE - || (TYPE_CODE (type) == TYPE_CODE_ENUM + return (type->code () == TYPE_CODE_STRUCT + || type->code () == TYPE_CODE_UNION + || type->code () == TYPE_CODE_NAMESPACE + || (type->code () == TYPE_CODE_ENUM && TYPE_DECLARED_CLASS (type))); } @@ -1870,7 +1870,7 @@ check_parameter_typelist (std::vector *params) for (ix = 0; ix < params->size (); ++ix) { type = (*params)[ix]; - if (type != NULL && TYPE_CODE (check_typedef (type)) == TYPE_CODE_VOID) + if (type != NULL && check_typedef (type)->code () == TYPE_CODE_VOID) { if (ix == 0) {