Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()

2008-11-04  Christian Dywan  <christian@imendio.com>

	Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()

	* glib/ghash.c:
	Clarify g_hash_table_lookup_extended

svn path=/trunk/; revision=7644
This commit is contained in:
Christian Dywan 2008-11-04 17:01:19 +00:00 committed by Christian Dywan
parent 01ff0656a4
commit 00769cf7f1
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2008-11-04 Christian Dywan <christian@imendio.com>
Bug 558672 NULL key lookup using g_hash_table_lookup_extended()
* glib/ghash.c:
Clarify g_hash_table_lookup_extended
2008-11-02 Tor Lillqvist <tml@novell.com>
* configure.in: Expand also build/win32/vs9/Makefile.

View File

@ -788,16 +788,19 @@ g_hash_table_lookup (GHashTable *hash_table,
/**
* g_hash_table_lookup_extended:
* @hash_table: a #GHashTable.
* @lookup_key: the key to look up.
* @orig_key: returns the original key.
* @value: returns the value associated with the key.
* @hash_table: a #GHashTable
* @lookup_key: the key to look up
* @orig_key: return location for the original key, or %NULL
* @value: return location for the value associated with the key, or %NULL
*
* Looks up a key in the #GHashTable, returning the original key and the
* associated value and a #gboolean which is %TRUE if the key was found. This
* is useful if you need to free the memory allocated for the original key,
* for example before calling g_hash_table_remove().
*
* You can actually pass %NULL for @lookup_key to test
* whether the %NULL key exists.
*
* Return value: %TRUE if the key was found in the #GHashTable.
**/
gboolean