unique namespace for typedefs, struct names, struct tags?
Alan Crosswell
alan at cucca.UUCP
Thu Mar 13 02:15:49 AEST 1986
I recently ran into a problem with a C compiler with the following
typedef:
typedef struct foo {
struct foo *next;
int foo;
} foo;
It didn't like the multiple uses of "foo". Since I am porting
someone else's large program and not writing one from scratch,
the solution of "don't do it that way" doesn't work for me.
Is there any statement in the ANSI proposed standard regarding this
name space issue? I'd like to be able to coax my compiler vendor
to fix it with a reasonable argument like conformance rather than
saying "well, it works right with the 4.2 compiler."
Thanks in advance.
Alan Crosswell
Columbia University
More information about the Comp.lang.c
mailing list