diff options
author | Colin Walters <walters@verbum.org> | 2010-05-26 13:52:36 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-05-26 13:53:29 -0400 |
commit | e2f74511d76e5de060391fbe9c77ba5b6af10122 (patch) | |
tree | 812cc60eb7ef9eac4d605dc67244f4c5bd661dde /girepository | |
parent | bbddbb94528308f8ee43661cacee2fbdc6b59b81 (diff) | |
download | gobject-introspection-e2f74511d76e5de060391fbe9c77ba5b6af10122.tar.gz |
[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)
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/girparser.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c index bf10e44b..341cb5de 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) { |