summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/queue.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 13:36:50 +0000
committeralberth <alberth@openttd.org>2010-08-29 13:36:50 +0000
commit10b182482e20f56c4a73a98f4578b03d0ff2c2b9 (patch)
tree82de5b6f9017536c04d24452dd2a0fbb38ff7f32 /src/pathfinder/npf/queue.h
parent92801ac718a2bb735aac91c869239967a9cee7fc (diff)
downloadopenttd-10b182482e20f56c4a73a98f4578b03d0ff2c2b9.tar.xz
(svn r20682) -Codechange: Make BinaryHeap_Pop() a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r--src/pathfinder/npf/queue.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h
index 53d4ccad5..c65897dcf 100644
--- a/src/pathfinder/npf/queue.h
+++ b/src/pathfinder/npf/queue.h
@@ -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