questionnaire

phil at ux1.cso.uiuc.edu phil at ux1.cso.uiuc.edu
Wed Jan 17 21:38:16 AEST 1990


> This method automatically takes care of this:
> 
> 	struct FOO2;
> 
> 	typedef struct FOO {
> 		struct FOO	*next, *previous;
> 		...
> 		struct FOO2	*buddy;
> 	}	FOO;
> 
> 	typedef struct FOO2 {
> 		struct FOO2	*next, *previous;
> 		...
> 		struct FOO	*buddy;
> 	}	FOO2;

Is the first "struct FOO2" really necessary?  What is the scope of the
definition of struct FOO2 inside the first typdef?  If the scope of the
definition is limited as such, and the second typedef again defines FOO2
(for the first time in the wider scope) do these two distinct definitions
actuall rendevous in some way as to have them deal with each other as
being the same thing?

--Phil Howard, KA9WGN--
<phil at ux1.cso.uiuc.edu>



More information about the Comp.lang.c mailing list