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:
Sven Neumann 2001-12-10 22:21:50 +00:00 committed by Sven Neumann
parent 47b14d2bb2
commit 7040de9ee9
9 changed files with 46 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);
} }