diff options
author | alberth <alberth@openttd.org> | 2010-08-29 13:35:51 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-29 13:35:51 +0000 |
commit | 92801ac718a2bb735aac91c869239967a9cee7fc (patch) | |
tree | b23e35967857504ebce54ad93609f7cf4805630f /src/pathfinder/npf/queue.h | |
parent | 68e2a07479f1aed8ad0a8fe2f72e7affcf0f9427 (diff) | |
download | openttd-92801ac718a2bb735aac91c869239967a9cee7fc.tar.xz |
(svn r20681) -Codechange: Make BinaryHeap_Push() a method, introduce temporary THISBIN_HEAP_ARR macro.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r-- | src/pathfinder/npf/queue.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h index b56f6b530..53d4ccad5 100644 --- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -19,7 +19,6 @@ struct Queue; -typedef bool Queue_PushProc(Queue *q, void *item, int priority); 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); @@ -32,11 +31,7 @@ struct BinaryHeapNode { struct Queue { - /* - * Pushes an element into the queue, at the appropriate place for the queue. - * Requires the queue pointer to be of an appropriate type, of course. - */ - Queue_PushProc *push; + 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. |