>>>> "David" == David Bush
David> In console-msw-impl.h the structure is actually defined.
David> In console-msw.h in is more like a forward declaration.
David> I'm surprised that this hasn't caused anyone else problems.
It's been reported once already. But it looks like a compiler bug to
me, because it _is_ a forward declaration.
Opinion from an up-to-date language lawyer would be appreciated, but
Harbison & Steele 1987 states:
The use of a type-specifier of the syntactic classes
structure-type-reference or union-type-reference without a preceding
definition in the same or enclosing scope is allowed when the size of
the structure is not required, including when declaring
1. pointers to the structure
2. a typedef name as a synonym for the structure
The use of the specifier introduces an "incomplete" definition of the
type and type tag in the innermost block containing the use. For this
definition to be completed, a structure-type-definition or
union-type-definition must occur later in the same scope.
Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
My nostalgia for Icon makes me forget about any of the bad things. I don't
have much nostalgia for Perl, so its faults I remember. Scott Gilbert c.l.py