Lines Matching refs:HeadNode
2502 void L_Insert(Element *Node, Head *HeadNode)
2504 if (!Node || !HeadNode)
2509 if (HeadNode->first == NULL)
2512 HeadNode->last = HeadNode->first = Node;
2516 Node->left = HeadNode->last;
2517 HeadNode->last = Node->left->right = Node;
2519 HeadNode->count++;
2522 void L_Remove(Element *Node, Head *HeadNode)
2527 if(!Node || !HeadNode)
2530 for(traverse = HeadNode->first; traverse; traverse = traverse->right)
2534 if(HeadNode->first == traverse)
2536 HeadNode->first = traverse->right;
2538 if(HeadNode->last == traverse)
2540 HeadNode->last = prevnode;
2551 HeadNode->count--;