Advertisement
dxvmxnd

Untitled

May 7th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. procedure ClearList;
  2. var
  3. CurrentTypeNode, NextTypeNode: PClothesTypeNode;
  4. CurrentNode, NextNode : PClothesNode;
  5. begin
  6. CurrentNode := ClothesHead;
  7. while CurrentNode <> nil do
  8. begin
  9. NextNode := CurrentNode^.Next;
  10. Dispose(CurrentNode);
  11. CurrentNode := NextNode;
  12. end;
  13. ClothesTypeHead := nil;
  14.  
  15. CurrentTypeNode := ClothesTypeHead;
  16. while CurrentTypeNode <> nil do
  17. begin
  18. NextTypeNode := CurrentTypeNode^.Next;
  19. Dispose(CurrentTypeNode);
  20. CurrentTypeNode := NextTypeNode;
  21. end;
  22. ClothesTypeHead := nil;
  23. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement