Branch: Tag:

2009-10-08

2009-10-08 09:47:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Made values and num_values protected (but not private) to allow for overloading.

Rev: lib/modules/ADT.pmod/Heap.pike:1.16

6:      #define SWAP(X,Y) do{ mixed tmp=values[X]; values[X]=values[Y]; values[Y]=tmp; }while(0)    - protected private array values=allocate(10); - protected private int num_values; + protected array values=allocate(10); + protected int num_values;      #ifdef ADT_HEAP_DEBUG   void verify_heap()