diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2011-08-17 11:43:11 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2011-09-30 15:37:00 -0700 |
commit | 16f7bdf5556e739d5a0b6c4c2e2a30bb731f8fc9 (patch) | |
tree | 0147b56e40c90fe8d3277b6f04601b8793db1f62 /src | |
parent | cd76f114e608ffb93a03ac3ffc3e11876d6a057e (diff) | |
download | external_mesa3d-16f7bdf5556e739d5a0b6c4c2e2a30bb731f8fc9.zip external_mesa3d-16f7bdf5556e739d5a0b6c4c2e2a30bb731f8fc9.tar.gz external_mesa3d-16f7bdf5556e739d5a0b6c4c2e2a30bb731f8fc9.tar.bz2 |
mesa: Document an odd side-effect of hash_table_insert
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/program/hash_table.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h index e715bb1..746939c 100644 --- a/src/mesa/program/hash_table.h +++ b/src/mesa/program/hash_table.h @@ -88,6 +88,11 @@ extern void *hash_table_find(struct hash_table *ht, const void *key); /** * Add an element to a hash table + * + * \warning + * If \c key is already in the hash table, it will be added again. Future + * calls to \c hash_table_find and \c hash_table_remove will return or remove, + * repsectively, the most recently added instance of \c key. */ extern void hash_table_insert(struct hash_table *ht, void *data, const void *key); |