onsbomma wrote:
Can anyone tell me the difference between
typedef struct chunkinfo* mfastbinptr;
and
typedef struct chunkinfoptr chunkinfoptr;
if you know that
struct chunkinfo{
struct chunkinfo* next;
struct chunkinfo* prev;
int size;
};
typedef struct chunkinfo* chunkinfoptr;
Note that the '*' means a pointer.
With the second i get a "has incomplete type" error
Let us do some simple substitutions:
The original problem line:
typedef struct chunkinfoptr chunkinfoptr;
Substitute "struct chunkinfo *" for chunkinfoptr:
typedef struct struct chunkinfoptr * chunkinfoptr;
Do you see the error?
Also, please don't use a structure tag as a type-id.
So, what are you trying to do?
Your code fragment above indicates some confusion
issues.
--
Thomas Matthews