mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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
This commit is contained in:
parent
45dae4b506
commit
29d380cc5b
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user