mutual reference in structures
Doug Gwyn
gwyn at smoke.BRL.MIL
Fri May 12 07:39:03 AEST 1989
In article <2346 at wheat-chex.ai.mit.edu> jym at wheaties.ai.mit.edu (Jym Dyer) writes:
-VAX C accepts this (which seems wrong to me):
- typedef struct
- {
- struct NODE_T * flink_p;
- struct NODE_T * blink_p;
- char data[512];
- } NODE_T;
That's valid, but "struct NODE_T" is still an incomplete type afterwards.
The final NODE_T is the type name being defined, not a structure tag.
More information about the Comp.lang.c
mailing list