mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 02:35:28 +01:00
Changed the 'data' parameters from gpointer to gconstpointer for the
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h, glist.h, gslist.h: Changed the 'data' parameters from gpointer to gconstpointer for the functions g_(list|slist)_(remove|find|find_custom|index), as they do not change this parameter. This fixes bug #4836.
This commit is contained in:
parent
7c467669cc
commit
059f5b9416
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
2000-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib.h, glist.h, gslist.h: Changed the 'data' parameters from
|
||||
gpointer to gconstpointer for the functions
|
||||
g_(list|slist)_(remove|find|find_custom|index), as they do not
|
||||
change this parameter. This fixes bug #4836.
|
||||
|
||||
* glib.h: Changed comment for g_getenv to reflect, that the
|
||||
returned memory must not be freed. Fixes Bug #8983.
|
||||
returned memory must not be freed. Fixes bug #8983.
|
||||
|
||||
2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
|
16
glib.h
16
glib.h
@ -975,7 +975,7 @@ GList* g_list_insert_sorted (GList *list,
|
||||
GList* g_list_concat (GList *list1,
|
||||
GList *list2);
|
||||
GList* g_list_remove (GList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GList* g_list_remove_link (GList *list,
|
||||
GList *llink);
|
||||
GList* g_list_delete_link (GList *list,
|
||||
@ -985,14 +985,14 @@ GList* g_list_copy (GList *list);
|
||||
GList* g_list_nth (GList *list,
|
||||
guint n);
|
||||
GList* g_list_find (GList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GList* g_list_find_custom (GList *list,
|
||||
gpointer data,
|
||||
gconstpointer data,
|
||||
GCompareFunc func);
|
||||
gint g_list_position (GList *list,
|
||||
GList *llink);
|
||||
gint g_list_index (GList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GList* g_list_last (GList *list);
|
||||
GList* g_list_first (GList *list);
|
||||
guint g_list_length (GList *list);
|
||||
@ -1027,7 +1027,7 @@ GSList* g_slist_insert_sorted (GSList *list,
|
||||
GSList* g_slist_concat (GSList *list1,
|
||||
GSList *list2);
|
||||
GSList* g_slist_remove (GSList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GSList* g_slist_remove_link (GSList *list,
|
||||
GSList *link);
|
||||
GSList* g_slist_delete_link (GSList *list,
|
||||
@ -1037,14 +1037,14 @@ GSList* g_slist_copy (GSList *list);
|
||||
GSList* g_slist_nth (GSList *list,
|
||||
guint n);
|
||||
GSList* g_slist_find (GSList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GSList* g_slist_find_custom (GSList *list,
|
||||
gpointer data,
|
||||
gconstpointer data,
|
||||
GCompareFunc func);
|
||||
gint g_slist_position (GSList *list,
|
||||
GSList *llink);
|
||||
gint g_slist_index (GSList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GSList* g_slist_last (GSList *list);
|
||||
guint g_slist_length (GSList *list);
|
||||
void g_slist_foreach (GSList *list,
|
||||
|
16
glib/glib.h
16
glib/glib.h
@ -975,7 +975,7 @@ GList* g_list_insert_sorted (GList *list,
|
||||
GList* g_list_concat (GList *list1,
|
||||
GList *list2);
|
||||
GList* g_list_remove (GList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GList* g_list_remove_link (GList *list,
|
||||
GList *llink);
|
||||
GList* g_list_delete_link (GList *list,
|
||||
@ -985,14 +985,14 @@ GList* g_list_copy (GList *list);
|
||||
GList* g_list_nth (GList *list,
|
||||
guint n);
|
||||
GList* g_list_find (GList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GList* g_list_find_custom (GList *list,
|
||||
gpointer data,
|
||||
gconstpointer data,
|
||||
GCompareFunc func);
|
||||
gint g_list_position (GList *list,
|
||||
GList *llink);
|
||||
gint g_list_index (GList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GList* g_list_last (GList *list);
|
||||
GList* g_list_first (GList *list);
|
||||
guint g_list_length (GList *list);
|
||||
@ -1027,7 +1027,7 @@ GSList* g_slist_insert_sorted (GSList *list,
|
||||
GSList* g_slist_concat (GSList *list1,
|
||||
GSList *list2);
|
||||
GSList* g_slist_remove (GSList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GSList* g_slist_remove_link (GSList *list,
|
||||
GSList *link);
|
||||
GSList* g_slist_delete_link (GSList *list,
|
||||
@ -1037,14 +1037,14 @@ GSList* g_slist_copy (GSList *list);
|
||||
GSList* g_slist_nth (GSList *list,
|
||||
guint n);
|
||||
GSList* g_slist_find (GSList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GSList* g_slist_find_custom (GSList *list,
|
||||
gpointer data,
|
||||
gconstpointer data,
|
||||
GCompareFunc func);
|
||||
gint g_slist_position (GSList *list,
|
||||
GSList *llink);
|
||||
gint g_slist_index (GSList *list,
|
||||
gpointer data);
|
||||
gconstpointer data);
|
||||
GSList* g_slist_last (GSList *list);
|
||||
guint g_slist_length (GSList *list);
|
||||
void g_slist_foreach (GSList *list,
|
||||
|
18
glib/glist.c
18
glib/glist.c
@ -296,8 +296,8 @@ g_list_concat (GList *list1, GList *list2)
|
||||
}
|
||||
|
||||
GList*
|
||||
g_list_remove (GList *list,
|
||||
gpointer data)
|
||||
g_list_remove (GList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
@ -426,8 +426,8 @@ g_list_nth_data (GList *list,
|
||||
}
|
||||
|
||||
GList*
|
||||
g_list_find (GList *list,
|
||||
gpointer data)
|
||||
g_list_find (GList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
while (list)
|
||||
{
|
||||
@ -440,9 +440,9 @@ g_list_find (GList *list,
|
||||
}
|
||||
|
||||
GList*
|
||||
g_list_find_custom (GList *list,
|
||||
gpointer data,
|
||||
GCompareFunc func)
|
||||
g_list_find_custom (GList *list,
|
||||
gconstpointer data,
|
||||
GCompareFunc func)
|
||||
{
|
||||
g_return_val_if_fail (func != NULL, list);
|
||||
|
||||
@ -476,8 +476,8 @@ g_list_position (GList *list,
|
||||
}
|
||||
|
||||
gint
|
||||
g_list_index (GList *list,
|
||||
gpointer data)
|
||||
g_list_index (GList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
gint i;
|
||||
|
||||
|
@ -283,8 +283,8 @@ g_slist_concat (GSList *list1, GSList *list2)
|
||||
}
|
||||
|
||||
GSList*
|
||||
g_slist_remove (GSList *list,
|
||||
gpointer data)
|
||||
g_slist_remove (GSList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
GSList *tmp;
|
||||
GSList *prev;
|
||||
@ -425,8 +425,8 @@ g_slist_nth_data (GSList *list,
|
||||
}
|
||||
|
||||
GSList*
|
||||
g_slist_find (GSList *list,
|
||||
gpointer data)
|
||||
g_slist_find (GSList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
while (list)
|
||||
{
|
||||
@ -439,9 +439,9 @@ g_slist_find (GSList *list,
|
||||
}
|
||||
|
||||
GSList*
|
||||
g_slist_find_custom (GSList *list,
|
||||
gpointer data,
|
||||
GCompareFunc func)
|
||||
g_slist_find_custom (GSList *list,
|
||||
gconstpointer data,
|
||||
GCompareFunc func)
|
||||
{
|
||||
g_return_val_if_fail (func != NULL, list);
|
||||
|
||||
@ -474,8 +474,8 @@ g_slist_position (GSList *list,
|
||||
}
|
||||
|
||||
gint
|
||||
g_slist_index (GSList *list,
|
||||
gpointer data)
|
||||
g_slist_index (GSList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
gint i;
|
||||
|
||||
|
18
glist.c
18
glist.c
@ -296,8 +296,8 @@ g_list_concat (GList *list1, GList *list2)
|
||||
}
|
||||
|
||||
GList*
|
||||
g_list_remove (GList *list,
|
||||
gpointer data)
|
||||
g_list_remove (GList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
@ -426,8 +426,8 @@ g_list_nth_data (GList *list,
|
||||
}
|
||||
|
||||
GList*
|
||||
g_list_find (GList *list,
|
||||
gpointer data)
|
||||
g_list_find (GList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
while (list)
|
||||
{
|
||||
@ -440,9 +440,9 @@ g_list_find (GList *list,
|
||||
}
|
||||
|
||||
GList*
|
||||
g_list_find_custom (GList *list,
|
||||
gpointer data,
|
||||
GCompareFunc func)
|
||||
g_list_find_custom (GList *list,
|
||||
gconstpointer data,
|
||||
GCompareFunc func)
|
||||
{
|
||||
g_return_val_if_fail (func != NULL, list);
|
||||
|
||||
@ -476,8 +476,8 @@ g_list_position (GList *list,
|
||||
}
|
||||
|
||||
gint
|
||||
g_list_index (GList *list,
|
||||
gpointer data)
|
||||
g_list_index (GList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
gint i;
|
||||
|
||||
|
18
gslist.c
18
gslist.c
@ -283,8 +283,8 @@ g_slist_concat (GSList *list1, GSList *list2)
|
||||
}
|
||||
|
||||
GSList*
|
||||
g_slist_remove (GSList *list,
|
||||
gpointer data)
|
||||
g_slist_remove (GSList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
GSList *tmp;
|
||||
GSList *prev;
|
||||
@ -425,8 +425,8 @@ g_slist_nth_data (GSList *list,
|
||||
}
|
||||
|
||||
GSList*
|
||||
g_slist_find (GSList *list,
|
||||
gpointer data)
|
||||
g_slist_find (GSList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
while (list)
|
||||
{
|
||||
@ -439,9 +439,9 @@ g_slist_find (GSList *list,
|
||||
}
|
||||
|
||||
GSList*
|
||||
g_slist_find_custom (GSList *list,
|
||||
gpointer data,
|
||||
GCompareFunc func)
|
||||
g_slist_find_custom (GSList *list,
|
||||
gconstpointer data,
|
||||
GCompareFunc func)
|
||||
{
|
||||
g_return_val_if_fail (func != NULL, list);
|
||||
|
||||
@ -474,8 +474,8 @@ g_slist_position (GSList *list,
|
||||
}
|
||||
|
||||
gint
|
||||
g_slist_index (GSList *list,
|
||||
gpointer data)
|
||||
g_slist_index (GSList *list,
|
||||
gconstpointer data)
|
||||
{
|
||||
gint i;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user