From: Colin Walters Date: Wed, 26 May 2010 17:52:36 +0000 (-0400) Subject: [girparser] Don't hard require caller-allocates since it breaks parsing X-Git-Tag: GOBJECT_INTROSPECTION_0_6_13~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2f74511d76e5de060391fbe9c77ba5b6af10122;p=platform%2Fupstream%2Fgobject-introspection.git [girparser] Don't hard require caller-allocates since it breaks parsing We need to support parsing older .girs for inclusion purposes. (But we should probably have an explicit .gir version, and require the attribute for newer versions) --- diff --git a/girepository/girparser.c b/girepository/girparser.c index bf10e44..341cb5d 100644 --- a/girepository/girparser.c +++ b/girepository/girparser.c @@ -920,14 +920,9 @@ start_parameter (GMarkupParseContext *context, param->in = FALSE; param->out = TRUE; if (caller_allocates == NULL) - { - g_set_error (error, - G_MARKUP_ERROR, - G_MARKUP_ERROR_INVALID_CONTENT, - "caller-allocates attribute required on out parameters"); - return FALSE; - } - param->caller_allocates = strcmp (caller_allocates, "1") == 0; + param->caller_allocates = FALSE; + else + param->caller_allocates = strcmp (caller_allocates, "1") == 0; } else if (direction && strcmp (direction, "inout") == 0) {