]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/heap.h
Opt: Added OPT_HELP_COLUMNS
[libucw.git] / ucw / heap.h
index 74e8a12445c39a266b66a465c8c6d4f7b7d97454..74fedaef921cc235b2d08ad82989b7dcfcbc0550 100644 (file)
@@ -85,8 +85,8 @@
  **/
 #define HEAP_INIT(type,heap,num,less,swap)                                             \
   do {                                                                                 \
-    uns _i = num;                                                                      \
-    uns _j, _l;                                                                                \
+    uint _i = num;                                                                     \
+    uint _j, _l;                                                                               \
     type x;                                                                            \
     while (_i >= 1)                                                                    \
       {                                                                                        \
  **/
 #define HEAP_DELETE_MIN(type,heap,num,less,swap)                                       \
   do {                                                                                 \
-    uns _j, _l;                                                                                \
+    uint _j, _l;                                                                               \
     type x;                                                                            \
     swap(heap,1,num,x);                                                                        \
     num--;                                                                             \
  **/
 #define HEAP_INSERT(type,heap,num,less,swap,elt)                                       \
   do {                                                                                 \
-    uns _j, _u;                                                                                \
+    uint _j, _u;                                                                               \
     type x;                                                                            \
     heap[++num] = elt;                                                                 \
     _j = num;                                                                          \
  **/
 #define HEAP_INCREASE(type,heap,num,less,swap,pos,elt)                                 \
   do {                                                                                 \
-    uns _j, _l;                                                                                \
+    uint _j, _l;                                                                               \
     type x;                                                                            \
     heap[pos] = elt;                                                                   \
     _j = pos;                                                                          \
  **/
 #define HEAP_DECREASE(type,heap,num,less,swap,pos,elt)                                 \
   do {                                                                                 \
-    uns _j, _u;                                                                                \
+    uint _j, _u;                                                                               \
     type x;                                                                            \
     heap[pos] = elt;                                                                   \
     _j = pos;                                                                          \
  **/
 #define HEAP_DELETE(type,heap,num,less,swap,pos)                                       \
   do {                                                                                 \
-    uns _j, _l, _u;                                                                    \
+    uint _j, _l, _u;                                                                   \
     type x;                                                                            \
     _j = pos;                                                                          \
     swap(heap,_j,num,x);                                                               \