mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Ensure we always have types for container nodes
svn path=/trunk/; revision=638
This commit is contained in:
parent
ff654e2d4e
commit
9893df46cb
@ -1506,13 +1506,17 @@ end_type_top (ParseContext *ctx)
|
||||
typenode->tag == GI_TYPE_TAG_GLIST ||
|
||||
typenode->tag == GI_TYPE_TAG_GSLIST)
|
||||
{
|
||||
if (typenode->parameter_type1 == NULL)
|
||||
typenode->parameter_type1 = parse_type (ctx, "any");
|
||||
}
|
||||
else if (typenode->tag == GI_TYPE_TAG_GHASH)
|
||||
{
|
||||
if (typenode->parameter_type1 == NULL)
|
||||
{
|
||||
typenode->parameter_type1 = parse_type (ctx, "any");
|
||||
typenode->parameter_type2 = parse_type (ctx, "any");
|
||||
}
|
||||
}
|
||||
|
||||
switch (ctx->current_typed->type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user