mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Add notes about how you shouldn't modify these data structures as you
2001-11-29 Havoc Pennington <hp@redhat.com> * glib/gtree.c (g_tree_foreach): * glib/ghash.c (g_hash_table_foreach): Add notes about how you shouldn't modify these data structures as you iterate over them.
This commit is contained in:
parent
4790c35c8d
commit
eb2f6f6fc1
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* glib/gtree.c (g_tree_foreach):
|
||||||
|
* glib/ghash.c (g_hash_table_foreach):
|
||||||
|
|
||||||
|
Add notes about how you shouldn't modify these data structures as
|
||||||
|
you iterate over them.
|
||||||
|
|
||||||
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Nov 29 11:16:03 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* HACKING: Update (#65721, Dave Neary)
|
* HACKING: Update (#65721, Dave Neary)
|
||||||
|
@ -37,6 +37,10 @@ A <structname>GPatternSpec</structname> is the 'compiled' form of a pattern.
|
|||||||
This structure is opaque and its fields cannot be accessed directly.
|
This structure is opaque and its fields cannot be accessed directly.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@match_type:
|
||||||
|
@pattern_length:
|
||||||
|
@pattern:
|
||||||
|
@pattern_reversed:
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_pattern_spec_new ##### -->
|
<!-- ##### FUNCTION g_pattern_spec_new ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
@ -46,8 +46,9 @@ A type which can hold any UTF-16 character code.
|
|||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@charset:
|
|
||||||
@Returns:
|
@Returns:
|
||||||
|
<!-- # Unused Parameters # -->
|
||||||
|
@charset:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_unichar_validate ##### -->
|
<!-- ##### FUNCTION g_unichar_validate ##### -->
|
||||||
|
@ -536,9 +536,12 @@ g_hash_table_foreach_remove_or_steal (GHashTable *hash_table,
|
|||||||
* @func: the function to call for each key/value pair.
|
* @func: the function to call for each key/value pair.
|
||||||
* @user_data: user data to pass to the function.
|
* @user_data: user data to pass to the function.
|
||||||
*
|
*
|
||||||
* Calls the given function for each of the key/value pairs in the #GHashTable.
|
* Calls the given function for each of the key/value pairs in the
|
||||||
* The function is passed the key and value of each pair, and the given
|
* #GHashTable. The function is passed the key and value of each
|
||||||
* @user_data parameter.
|
* pair, and the given @user_data parameter. The hash table may not
|
||||||
|
* be modified while iterating over it (you can't add/remove
|
||||||
|
* items). To remove all items matching a predicate, use
|
||||||
|
* g_hash_table_remove().
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_hash_table_foreach (GHashTable *hash_table,
|
g_hash_table_foreach (GHashTable *hash_table,
|
||||||
|
@ -442,7 +442,11 @@ g_tree_lookup_extended (GTree *tree,
|
|||||||
*
|
*
|
||||||
* Calls the given function for each of the key/value pairs in the #GTree.
|
* Calls the given function for each of the key/value pairs in the #GTree.
|
||||||
* The function is passed the key and value of each pair, and the given
|
* The function is passed the key and value of each pair, and the given
|
||||||
* @data parameter.
|
* @data parameter. The tree may not be modified while iterating over
|
||||||
|
* it (you can't add/remove items). To remove all items matching
|
||||||
|
* a predicate, you need to add each item to a list as in your
|
||||||
|
* #GTraverseFunc as you walk over the tree, then walk the list
|
||||||
|
* and remove each item.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_tree_foreach (GTree *tree,
|
g_tree_foreach (GTree *tree,
|
||||||
|
Loading…
Reference in New Issue
Block a user