mutual reference in structures

Jym Dyer jym at wheaties.ai.mit.edu
Thu May 11 16:29:35 AEST 1989


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;

It would be nice if C typedefs knew about themselves.  That is, if this
    worked:

	typedef
	{
	  NODE_T *  flink_p;
	  NODE_T *  blink_p;
	  char  data[512];
	}  NODE_T;

    <_Jym_>



More information about the Comp.lang.c mailing list