Anon typedefs
Philip Herron
redbrain@gcc.gnu.org
Sat Aug 4 18:28:00 GMT 2012
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
More information about the Gcc-help
mailing list