X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsorter%2Fdebug%2Fretros.c;h=7325de7529721d1af36c99a3706fd9b1fc8009a1;hb=d9c55a4d021b4a317a25f14f89468d62592aae0b;hp=3d09de65de13608d57299ba7cd23befafc9f71cb;hpb=5d37fb87c626896d1606cfd332aaf2ccde245e4d;p=libucw.git diff --git a/ucw/sorter/debug/retros.c b/ucw/sorter/debug/retros.c index 3d09de65..7325de75 100644 --- a/ucw/sorter/debug/retros.c +++ b/ucw/sorter/debug/retros.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -622,7 +623,7 @@ static void heapsort(void) 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 } @@ -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_DELMIN(struct elt *, heap, nn, H_LESS, HEAP_SWAP); + HEAP_DELETE_MIN(struct elt *, heap, nn, H_LESS, HEAP_SWAP); #undef H_LESS }