summaryrefslogtreecommitdiff
path: root/queue.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-11 15:05:56 +0000
committertron <tron@openttd.org>2006-02-11 15:05:56 +0000
commit12bc4e8e3206a26ec108090a8f82581045660a67 (patch)
treed161782b54043daa05d9ae182cb8c3fcd0d150b9 /queue.h
parent843bd25b4e0a7fbd7187ec5977f282ba8db2c9d6 (diff)
downloadopenttd-12bc4e8e3206a26ec108090a8f82581045660a67.tar.xz
(svn r3592) Miscellaneous smaller changes, most notably replacing sizeof(type) by sizeof(*variable)
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/queue.h b/queue.h
index 76e9f354f..1bbdf353c 100644
--- a/queue.h
+++ b/queue.h
@@ -22,8 +22,9 @@ struct InsSortNode {
int priority;
InsSortNode* next;
};
+
typedef struct BinaryHeapNode BinaryHeapNode;
- struct BinaryHeapNode {
+struct BinaryHeapNode {
void* item;
int priority;
};
@@ -179,7 +180,7 @@ void* Hash_Delete(Hash* h, uint key1, uint key2);
void* Hash_Set(Hash* h, uint key1, uint key2, void* value);
/* Gets the value associated with the given key pair, or NULL when it is not
* present. */
-void* Hash_Get(Hash* h, uint key1, uint key2);
+void* Hash_Get(const Hash* h, uint key1, uint key2);
/* Call these function to create/destroy a hash */
@@ -202,6 +203,6 @@ void clear_Hash(Hash* h, bool free_values);
/*
* Gets the current size of the Hash
*/
-uint Hash_Size(Hash* h);
+uint Hash_Size(const Hash* h);
#endif /* QUEUE_H */