]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sorter/debug/retros.c
Doc: Documented growing arrays, generic allocators and related things
[libucw.git] / ucw / sorter / debug / retros.c
index 3d09de65de13608d57299ba7cd23befafc9f71cb..7325de7529721d1af36c99a3706fd9b1fc8009a1 100644 (file)
@@ -8,6 +8,7 @@
 #include <ucw/getopt.h>
 #include <ucw/md5.h>
 #include <ucw/heap.h>
 #include <ucw/getopt.h>
 #include <ucw/md5.h>
 #include <ucw/heap.h>
+#include <ucw/time.h>
 
 #include <stdio.h>
 #include <stdlib.h>
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -622,7 +623,7 @@ static void heapsort(void)
   HEAP_INIT(struct elt, heap, n, H_LESS, HEAP_SWAP);
   uns nn = n;
   while (nn)
   HEAP_INIT(struct elt, heap, n, H_LESS, HEAP_SWAP);
   uns nn = n;
   while (nn)
-    HEAP_DELMIN(struct elt, heap, nn, H_LESS, HEAP_SWAP);
+    HEAP_DELETE_MIN(struct elt, heap, nn, H_LESS, HEAP_SWAP);
 #undef H_LESS
 }
 
 #undef H_LESS
 }
 
@@ -633,7 +634,7 @@ static void heapsort_ind(void)
   HEAP_INIT(struct elt *, heap, n, H_LESS, HEAP_SWAP);
   uns nn = n;
   while (nn)
   HEAP_INIT(struct elt *, heap, n, H_LESS, HEAP_SWAP);
   uns nn = n;
   while (nn)
-    HEAP_DELMIN(struct elt *, heap, nn, H_LESS, HEAP_SWAP);
+    HEAP_DELETE_MIN(struct elt *, heap, nn, H_LESS, HEAP_SWAP);
 #undef H_LESS
 }
 
 #undef H_LESS
 }