Remove resolve_possible_typedefs, it was unused. Allow multiple enum

2008-08-17  Johan Dahlin  <johan@gnome.org>

    * girepository/gtypelib.c (validate_enum_blob):
    * giscanner/glibtransformer.py:
    * giscanner/transformer.py:
    Remove resolve_possible_typedefs, it was unused.
    Allow multiple enum values of the sample value in an enum,
    since it's actually pretty common.
    Register enums so they can be resolved too.


svn path=/trunk/; revision=389
This commit is contained in:
Johan Dahlin 2008-08-16 22:26:55 +00:00 committed by Johan Dahlin
parent bf5761db23
commit fc01170517

View File

@ -1199,6 +1199,7 @@ validate_enum_blob (GTypelib *typelib,
error))
return FALSE;
#if 0
v1 = (ValueBlob *)&typelib->data[offset + sizeof (EnumBlob) +
i * sizeof (ValueBlob)];
for (j = 0; j < i; j++)
@ -1208,6 +1209,7 @@ validate_enum_blob (GTypelib *typelib,
if (v1->value == v2->value)
{
/* FIXME should this be an error ? */
g_set_error (error,
G_TYPELIB_ERROR,
@ -1216,6 +1218,7 @@ validate_enum_blob (GTypelib *typelib,
return FALSE;
}
}
#endif
}
return TRUE;