mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Ensure we always have types for container nodes
svn path=/trunk/; revision=638
This commit is contained in:
parent
ff654e2d4e
commit
9893df46cb
10
girparser.c
10
girparser.c
@ -1506,12 +1506,16 @@ end_type_top (ParseContext *ctx)
|
||||
typenode->tag == GI_TYPE_TAG_GLIST ||
|
||||
typenode->tag == GI_TYPE_TAG_GSLIST)
|
||||
{
|
||||
typenode->parameter_type1 = parse_type (ctx, "any");
|
||||
if (typenode->parameter_type1 == NULL)
|
||||
typenode->parameter_type1 = parse_type (ctx, "any");
|
||||
}
|
||||
else if (typenode->tag == GI_TYPE_TAG_GHASH)
|
||||
{
|
||||
typenode->parameter_type1 = parse_type (ctx, "any");
|
||||
typenode->parameter_type2 = parse_type (ctx, "any");
|
||||
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