Handling of untagged structures by the C compiler
Larry Jones
scjones at thor.UUCP
Fri Sep 21 23:12:53 AEST 1990
In article <879 at gtenmc.UUCP>, ravim at gtenmc.UUCP (Ravi K Mandava ( Vox Populi )) writes:
> It appears that for every untagged structure declaration/typecast, the
> compiler generates a unique tag internally and does not bother to
> check for equivalence of the previously encountered structures.
Exactly. That is how C is supposed to work according to the ANSI standard.
If you want identical structures you have to use a tag or a typedef.
----
Larry Jones UUCP: uunet!sdrc!thor!scjones
SDRC scjones at thor.UUCP
2000 Eastman Dr. BIX: ltl
Milford, OH 45150-2789 AT&T: (513) 576-2070
Your bangs do a good job of covering up the lobotomy stitches. -- Calvin
More information about the Comp.lang.c
mailing list