6 typedef struct tagPtrNode
{
9 struct tagPtrNode
*next
;
12 typedef struct tagPtrList
{
17 void InsertFront(PtrList
*list
, void *data
);
19 void PtrLinkTest(void);
21 PtrList
*CreatePtrList();
22 void DestroyPtrList(PtrList
*list
);
23 int isempty(PtrList
*list
);
24 void DeletePtrNode(PtrList
*list
, void *val
);
25 void *RemoveFront(PtrList
*list
);
26 void PrintPtrList(PtrList
*list
);
29 #define POP_STACK(list) RemoveFront(list)
30 #define PUSH_STACK(list, data) InsertFront(list, data)
31 #define CREATE_STACK CreatePtrList()
32 #define DESTROY_STACK(list) DestroyPtrList(list)