From 4e4666e6f7bc46a81ed0f3dee2aa4613f635e0b1 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 8 Dec 2010 21:35:59 +0000 Subject: [PATCH] * gdbtypes.h (TYPE_IS_OPAQUE): Reformat. --- gdb/ChangeLog | 2 ++ gdb/gdbtypes.h | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 75c7e323d9b..0d1deb78ebc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2010-12-08 Doug Evans + * gdbtypes.h (TYPE_IS_OPAQUE): Reformat. + * gdbtypes.c (check_typedef): Tweak comment. PR symtab/12302 diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 51eb4456e40..1ce2d912a87 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1094,12 +1094,13 @@ extern void allocate_gnat_aux_type (struct type *); #define TYPE_TYPEDEF_FIELD_COUNT(thistype) \ TYPE_CPLUS_SPECIFIC (thistype)->typedef_field_count -#define TYPE_IS_OPAQUE(thistype) (((TYPE_CODE (thistype) == TYPE_CODE_STRUCT) || \ - (TYPE_CODE (thistype) == TYPE_CODE_UNION)) && \ - (TYPE_NFIELDS (thistype) == 0) && \ - (!HAVE_CPLUS_STRUCT (thistype) \ - || TYPE_NFN_FIELDS (thistype) == 0) && \ - (TYPE_STUB (thistype) || !TYPE_STUB_SUPPORTED (thistype))) +#define TYPE_IS_OPAQUE(thistype) \ + (((TYPE_CODE (thistype) == TYPE_CODE_STRUCT) \ + || (TYPE_CODE (thistype) == TYPE_CODE_UNION)) \ + && (TYPE_NFIELDS (thistype) == 0) \ + && (!HAVE_CPLUS_STRUCT (thistype) \ + || TYPE_NFN_FIELDS (thistype) == 0) \ + && (TYPE_STUB (thistype) || !TYPE_STUB_SUPPORTED (thistype))) /* A helper macro that returns the name of an error type. If the type has a name, it is used; otherwise, a default is used. */ -- 2.30.2