- To: GCC <gcc-help@xxxxxxxxxxx>
- Subject: Anon typedefs
- From: Philip Herron <redbrain@xxxxxxxxxxx>
- Date: Sat, 4 Aug 2012 19:28:26 +0100
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hey
There are anonymous structs but typedef'd in alot of c code like:
typedef struct
{
int _mp_alloc; /* Number of *limbs* allocated and pointed
to by the _mp_d field. */
int _mp_size; /* abs(_mp_size) is the number of limbs the
last field points to. If _mp_size is
negative this is a negative number. */
mp_limb_t *_mp_d; /* Pointer to the limbs. */
} __mpz_struct;
I was wondering how these are handled in gcc, i can access the fields
within the structs but TYPE_NAME is empty.
--Phil
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]