]> mj.ucw.cz Git - libucw.git/blobdiff - lib/heap.h
Documented bgets() and friends per popular request.
[libucw.git] / lib / heap.h
index b7bc1065f5e159f646db5a9e6cb581a765324ac7..4f83776f5cb0dff38dbf646a702b23775926ebed 100644 (file)
     HEAP_BUBBLE_UP_J(heap,num,less,swap);                                              \
   } while(0)
 
-#define HEAP_INCREASE(type,heap,num,less,swap)                                         \
+#define HEAP_INCREASE(type,heap,num,less,swap,pos)                                     \
   do {                                                                                 \
     uns _j, _l;                                                                                \
     type x;                                                                            \
-    _j = 1;                                                                            \
+    _j = pos;                                                                          \
     HEAP_BUBBLE_DOWN_J(heap,num,less,swap);                                            \
   } while(0)