diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:41:25 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:41:25 +0000 |
commit | 15b784471e3fc0aa210399668294481fa7ceb99d (patch) | |
tree | 7a36abfbb28ebd3ba42e7f9c6226ba53d6dc5f81 /src/pathfinder/npf/queue.h | |
parent | 4ed94825b2b149cc7da7d1827c4bc26988e72f03 (diff) | |
download | openttd-15b784471e3fc0aa210399668294481fa7ceb99d.tar.xz |
(svn r20882) -Codechange: Make Hash_Set a method.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r-- | src/pathfinder/npf/queue.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h index 6d42bae92..6ee5675c4 100644 --- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -87,6 +87,7 @@ struct Hash { bool *buckets_in_use; void *Get(uint key1, uint key2) const; + void *Set(uint key1, uint key2, void *value); /** * Gets the current size of the hash. @@ -105,11 +106,6 @@ struct Hash { * is _not_ free()'d! */ void *Hash_Delete(Hash *h, uint key1, uint key2); -/** - * Sets the value associated with the given key pair to the given value. - * Returns the old value if the value was replaced, NULL when it was not yet present. - */ -void *Hash_Set(Hash *h, uint key1, uint key2, void *value); /* Call these function to create/destroy a hash */ |