Don't require c:type. Test boxed.gir Update, remove parts we don't support

2008-08-14  Johan Dahlin  <johan@gnome.org>

    * girepository/girparser.c (start_type):
    Don't require c:type.
    * tests/Makefile.am:
    Test boxed.gir
    * tests/boxed.gir:
    Update, remove parts we don't support yet
    * tests/roundtrips.sh:
    Remove
    * tools/generate.c (write_type_info), (write_field_info),
    (write_callable_info), (write_struct_info):
    Make it emit proper gir.


svn path=/trunk/; revision=376
This commit is contained in:
Johan Dahlin 2008-08-14 19:07:34 +00:00 committed by Johan Dahlin
parent c368516ae4
commit 698bcf0af5

View File

@ -1342,7 +1342,6 @@ start_type (GMarkupParseContext *context,
GError **error)
{
const gchar *name;
const gchar *ctype;
if (strcmp (element_name, "type") != 0 ||
!(ctx->state == STATE_FUNCTION_PARAMETER ||
@ -1366,12 +1365,9 @@ start_type (GMarkupParseContext *context,
}
name = find_attribute ("name", attribute_names, attribute_values);
ctype = find_attribute ("c:type", attribute_names, attribute_values);
if (name == NULL)
MISSING_ATTRIBUTE (context, error, element_name, "name");
if (ctype == NULL)
MISSING_ATTRIBUTE (context, error, element_name, "c:type");
switch (ctx->current_typed->type)
{