mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
perform an exact match on the two types instead of using
2001-12-10 Sven Neumann <sven@gimp.org> * gobject/gvalue.c (g_value_register_transform_func): perform an exact match on the two types instead of using transform_func_lookup().
This commit is contained in:
parent
47b14d2bb2
commit
7040de9ee9
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gobject/gvalue.c (g_value_register_transform_func): perform an exact
|
||||||
|
match on the two types instead of using transform_func_lookup().
|
||||||
|
|
||||||
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
2001-12-09 Christopher Blizzard <blizzard@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
* glib/gmessages.h: Add pragma that will prevent warnings when you
|
||||||
|
@ -274,14 +274,17 @@ g_value_register_transform_func (GType src_type,
|
|||||||
g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (dest_type));
|
g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (dest_type));
|
||||||
g_return_if_fail (transform_func != NULL);
|
g_return_if_fail (transform_func != NULL);
|
||||||
|
|
||||||
if (transform_func_lookup (src_type, dest_type))
|
entry.src_type = src_type;
|
||||||
|
entry.dest_type = dest_type;
|
||||||
|
|
||||||
|
if (g_bsearch_array_lookup (&transform_array, &entry))
|
||||||
g_warning ("reregistering value transformation function (%p) for `%s' to `%s'",
|
g_warning ("reregistering value transformation function (%p) for `%s' to `%s'",
|
||||||
transform_func,
|
transform_func,
|
||||||
g_type_name (src_type),
|
g_type_name (src_type),
|
||||||
g_type_name (dest_type));
|
g_type_name (dest_type));
|
||||||
entry.src_type = src_type;
|
|
||||||
entry.dest_type = dest_type;
|
|
||||||
entry.func = transform_func;
|
entry.func = transform_func;
|
||||||
|
|
||||||
g_bsearch_array_insert (&transform_array, &entry, TRUE);
|
g_bsearch_array_insert (&transform_array, &entry, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user