From fc01170517132b7b8b0ee4fa892042d569f49cba Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sat, 16 Aug 2008 22:26:55 +0000 Subject: [PATCH] Remove resolve_possible_typedefs, it was unused. Allow multiple enum 2008-08-17 Johan Dahlin * 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 --- gtypelib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtypelib.c b/gtypelib.c index dd598447c..c7371207b 100644 --- a/gtypelib.c +++ b/gtypelib.c @@ -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;