mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
make these safe against removal of the current element.
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org> * gdataset.c: (g_dataset_foreach): (g_datalist_foreach): make these safe against removal of the current element.
This commit is contained in:
parent
8468ffddf0
commit
d5033d53bd
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
@ -1,3 +1,10 @@
|
||||
Fri May 11 18:25:23 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdataset.c:
|
||||
(g_dataset_foreach):
|
||||
(g_datalist_foreach): make these safe against removal of the
|
||||
current element.
|
||||
|
||||
2001-05-10 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gmessages.c (g_log_write_prefix): change env variable to
|
||||
|
16
gdataset.c
16
gdataset.c
@ -481,10 +481,13 @@ g_dataset_foreach (gconstpointer dataset_location,
|
||||
G_UNLOCK (g_dataset_global);
|
||||
if (dataset)
|
||||
{
|
||||
register GData *list;
|
||||
register GData *list, *next;
|
||||
|
||||
for (list = dataset->datalist; list; list = list->next)
|
||||
for (list = dataset->datalist; list; list = next)
|
||||
{
|
||||
next = list->next;
|
||||
func (list->id, list->data, user_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -498,13 +501,16 @@ g_datalist_foreach (GData **datalist,
|
||||
GDataForeachFunc func,
|
||||
gpointer user_data)
|
||||
{
|
||||
register GData *list;
|
||||
register GData *list, *next;
|
||||
|
||||
g_return_if_fail (datalist != NULL);
|
||||
g_return_if_fail (func != NULL);
|
||||
|
||||
for (list = *datalist; list; list = list->next)
|
||||
func (list->id, list->data, user_data);
|
||||
for (list = *datalist; list; list = next)
|
||||
{
|
||||
next = list->next;
|
||||
func (list->id, list->data, user_data);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -481,10 +481,13 @@ g_dataset_foreach (gconstpointer dataset_location,
|
||||
G_UNLOCK (g_dataset_global);
|
||||
if (dataset)
|
||||
{
|
||||
register GData *list;
|
||||
register GData *list, *next;
|
||||
|
||||
for (list = dataset->datalist; list; list = list->next)
|
||||
for (list = dataset->datalist; list; list = next)
|
||||
{
|
||||
next = list->next;
|
||||
func (list->id, list->data, user_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -498,13 +501,16 @@ g_datalist_foreach (GData **datalist,
|
||||
GDataForeachFunc func,
|
||||
gpointer user_data)
|
||||
{
|
||||
register GData *list;
|
||||
register GData *list, *next;
|
||||
|
||||
g_return_if_fail (datalist != NULL);
|
||||
g_return_if_fail (func != NULL);
|
||||
|
||||
for (list = *datalist; list; list = list->next)
|
||||
func (list->id, list->data, user_data);
|
||||
for (list = *datalist; list; list = next)
|
||||
{
|
||||
next = list->next;
|
||||
func (list->id, list->data, user_data);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user