(svn r20684) -Codechange: Make BinaryHeap_Free() a method.

This commit is contained in:
alberth
2010-08-29 13:38:27 +00:00
parent 3f0cd8c9f0
commit b06cedc905
3 changed files with 13 additions and 14 deletions

View File

@@ -20,7 +20,6 @@
struct Queue;
typedef void Queue_ClearProc(Queue *q, bool free_values);
typedef void Queue_FreeProc(Queue *q, bool free_values);
struct BinaryHeapNode {
void *item;
@@ -38,11 +37,7 @@ struct Queue {
* in this way are free()'d.
*/
Queue_ClearProc *clear;
/* Frees the queue, by reclaiming all memory allocated by it. After
* this it is no longer usable. If free_items is true, any remaining
* items are free()'d too.
*/
Queue_FreeProc *free;
void Free(bool free_values);
uint max_size;
uint size;