**/
#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); \