(svn r20682) -Codechange: Make BinaryHeap_Pop() a method.

This commit is contained in:
alberth
2010-08-29 13:36:50 +00:00
parent b03f0b198d
commit 4e9c7f489a
3 changed files with 11 additions and 13 deletions

View File

@@ -19,7 +19,6 @@
struct Queue;
typedef void *Queue_PopProc(Queue *q);
typedef bool Queue_DeleteProc(Queue *q, void *item, int priority);
typedef void Queue_ClearProc(Queue *q, bool free_values);
typedef void Queue_FreeProc(Queue *q, bool free_values);
@@ -32,11 +31,7 @@ struct BinaryHeapNode {
struct Queue {
bool Push(void *item, int priority);
/*
* Pops the first element from the queue. What exactly is the first element,
* is defined by the exact type of queue.
*/
Queue_PopProc *pop;
void *Pop();
/*
* Deletes the item from the queue. priority should be specified if
* known, which speeds up the deleting for some queue's. Should be -1