2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
Bug 556541 – access union members through UnionBlob rather than
StructBlob
* girepository/ginfo.c (g_union_info_find_method): access union
members through UnionBlob rather than StructBlob
svn path=/trunk/; revision=729
+2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
+
+ Bug 556541 – access union members through UnionBlob rather than
+ StructBlob
+
+ * girepository/ginfo.c (g_union_info_find_method): access union
+ members through UnionBlob rather than StructBlob
+
2008-10-15 Colin Walters <walters@verbum.org>
Bug 556331 - clean up includes handling
gint offset;
GIBaseInfo *base = (GIBaseInfo *)info;
Header *header = (Header *)base->typelib->data;
- StructBlob *blob = (UnionBlob *)&base->typelib->data[base->offset];
+ UnionBlob *blob = (UnionBlob *)&base->typelib->data[base->offset];
offset = base->offset + header->union_blob_size
+ blob->n_fields * header->field_blob_size;
- return find_method (base, offset, blob->n_methods, name);
+ return find_method (base, offset, blob->n_functions, name);
}