mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-11 08:23:12 +02:00
Revert "gvalue: Add g_value_clear method"
This reverts commit 1233962b54de68bfdf06cfde244693ab7fd3558a.
This commit is contained in:
parent
4c870904cd
commit
b4a3c1bb11
@ -450,7 +450,6 @@ g_value_init
|
|||||||
g_value_copy
|
g_value_copy
|
||||||
g_value_reset
|
g_value_reset
|
||||||
g_value_unset
|
g_value_unset
|
||||||
g_value_clear
|
|
||||||
g_value_init_from_instance
|
g_value_init_from_instance
|
||||||
g_value_set_instance
|
g_value_set_instance
|
||||||
g_value_fits_pointer
|
g_value_fits_pointer
|
||||||
|
@ -273,26 +273,6 @@ g_value_unset (GValue *value)
|
|||||||
memset (value, 0, sizeof (*value));
|
memset (value, 0, sizeof (*value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* g_value_clear:
|
|
||||||
* @value: An #GValue structure.
|
|
||||||
*
|
|
||||||
* Clears the current value in @value and "unsets" the type,
|
|
||||||
* this releases all resources associated with this GValue.
|
|
||||||
* Unlike g_value_unset() this method will accept uninitialized
|
|
||||||
* (zero-filled) #GValue structure as @value.
|
|
||||||
*
|
|
||||||
* Since 2.48
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
g_value_clear (GValue *value)
|
|
||||||
{
|
|
||||||
if (value && value->g_type == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_value_unset (value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_value_fits_pointer:
|
* g_value_fits_pointer:
|
||||||
* @value: An initialized #GValue structure.
|
* @value: An initialized #GValue structure.
|
||||||
|
@ -134,8 +134,6 @@ GLIB_AVAILABLE_IN_ALL
|
|||||||
GValue* g_value_reset (GValue *value);
|
GValue* g_value_reset (GValue *value);
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
void g_value_unset (GValue *value);
|
void g_value_unset (GValue *value);
|
||||||
GLIB_AVAILABLE_IN_2_48
|
|
||||||
void g_value_clear (GValue *value);
|
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
void g_value_set_instance (GValue *value,
|
void g_value_set_instance (GValue *value,
|
||||||
gpointer instance);
|
gpointer instance);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user