struct list_node {
....
struct list_node *next; /* What the heck is struct list_node ??? die here */
};
/* struct list_node isn't known until this point */
struct list_node;
...
struct list_node {
....
struct list_node *next; /* Everything ok, struct list_node is known */
};
struct list
{
int x;
struct list *next;
};
struct blah;
void foo (struct blah *p);
This give info about struct namelclee said:Why would the compiler accept struct foo;
This gives nothinglclee said:and not int;