From 5cb925b20739c04e18e94a03a3e4e68041894b03 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 7 Jul 2010 14:07:17 -0400 Subject: Don't include machine-dependent integral types in the typelib Previously we had both e.g. GI_TYPE_TAG_LONG and GI_TYPE_TAG_INT64, but in fact the typelib is already machine-specific, so it makes sense to just encode this as a fixed type. The .gir remains abstract. We also remove size_t from the typelib; one would never want to treat it differently than an integer. time_t is removed as well; while bindings like gjs had special handling to turn it into e.g. a JS Date object, I don't think we should encourage people to use these POSIX types in their API. Use GTimeVal or the like instead. Because the typelib is now really machine-specific, we need to remove the -expected.tgirs from git. (We could potentially add a check which wasn't just a literal diff later) https://bugzilla.gnome.org/show_bug.cgi?id=623774 --- girepository/girwriter.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'girepository/girwriter.c') diff --git a/girepository/girwriter.c b/girepository/girwriter.c index 56d61b23..bf7ea9dc 100644 --- a/girepository/girwriter.c +++ b/girepository/girwriter.c @@ -757,24 +757,6 @@ write_constant_value (const gchar *namespace, case GI_TYPE_TAG_UINT64: xml_printf (file, "%" G_GUINT64_FORMAT, value->v_uint64); break; - case GI_TYPE_TAG_INT: - xml_printf (file, "%d", value->v_int); - break; - case GI_TYPE_TAG_UINT: - xml_printf (file, "%d", value->v_uint); - break; - case GI_TYPE_TAG_LONG: - xml_printf (file, "%ld", value->v_long); - break; - case GI_TYPE_TAG_ULONG: - xml_printf (file, "%ld", value->v_ulong); - break; - case GI_TYPE_TAG_SSIZE: - xml_printf (file, "%zd", value->v_ssize); - break; - case GI_TYPE_TAG_SIZE: - xml_printf (file, "%zd", value->v_size); - break; case GI_TYPE_TAG_FLOAT: xml_printf (file, "%f", value->v_float); break; -- cgit v1.2.1