[glib] gtype: Bump allowed number of children



commit 29d380cc5bbd97ee5b0c95b5499d6dd17523b71b
Author: Garrett Regier <garrett regier riftio com>
Date:   Tue Apr 14 20:44:38 2015 -0700

    gtype: Bump allowed number of children
    
    Restricting the number of children to be less than 4095 can
    be an issue when generating types. This is also an issue for
    the Lua bindings as each Lua state will create a new GType each
    time the Lua code is executed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747882

 gobject/gtype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index dc58524..4e6f77d 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -250,7 +250,7 @@ struct _TypeNode
 
 #define SIZEOF_BASE_TYPE_NODE()                        (G_STRUCT_OFFSET (TypeNode, supers))
 #define MAX_N_SUPERS                           (255)
-#define MAX_N_CHILDREN                         (4095)
+#define MAX_N_CHILDREN                         (G_MAXUINT)
 #define        MAX_N_INTERFACES                        (255) /* Limited by offsets being 8 bits */
 #define        MAX_N_PREREQUISITES                     (511)
 #define NODE_TYPE(node)                                (node->supers[0])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]