mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-28 13:12:10 +01:00
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:
parent
bf5761db23
commit
fc01170517
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user