mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-31 18:00:06 +02:00
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:
parent
c368516ae4
commit
698bcf0af5
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user