docs: Clarify g_type_register_fundamental() behaviour
authorDavid King <amigadave@amigadave.com>
Tue, 21 Feb 2012 10:05:08 +0000 (10:05 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Feb 2012 03:21:19 +0000 (22:21 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=580873

gobject/gtype.c

index a0e9106..3732f7f 100644 (file)
@@ -2584,10 +2584,11 @@ g_type_remove_interface_check (gpointer                check_data,
  * @flags: Bitwise combination of #GTypeFlags values.
  *
  * Registers @type_id as the predefined identifier and @type_name as the
- * name of a fundamental type.  The type system uses the information
- * contained in the #GTypeInfo structure pointed to by @info and the
- * #GTypeFundamentalInfo structure pointed to by @finfo to manage the
- * type and its instances.  The value of @flags determines additional
+ * name of a fundamental type. If @type_id is already registered, or a type
+ * named @type_name is already registered, the behaviour is undefined. The type
+ * system uses the information contained in the #GTypeInfo structure pointed to
+ * by @info and the #GTypeFundamentalInfo structure pointed to by @finfo to
+ * manage the type and its instances. The value of @flags determines additional
  * characteristics of the fundamental type.
  *
  * Returns: The predefined type identifier.