- type_class->alignment = 1;
- type_class->copy = array_copy;
- type_class->class_free = _array_type_class_free;
- type_class->type_new = _array_type_new;
- type_class->type_free = _array_type_free;
- type_class->ref = 1;
-
- if (type_class->name) {
- ret = register_type(type_class);
- if (ret)
- goto error_register;
- }
- return array_class;
-
-error_register:
- type_class_unref(array_class->elem);
- g_free(array_class);
- return NULL;
+ type->alignment = 1;
+ type->copy = array_copy;
+ type->type_free = _array_type_free;
+ type->declaration_new = _array_declaration_new;
+ type->declaration_free = _array_declaration_free;
+ type->ref = 1;
+ return array_type;