- array_type = g_new(struct type_array, 1);
- type = &array_type->p;
- array_type->len = len;
- type_ref(elem_type);
- array_type->elem = elem_type;
- array_type->scope = new_type_scope(parent_scope);
- type->id = CTF_TYPE_ARRAY;
- type->name = g_quark_from_string(name);
+ array_declaration = g_new(struct declaration_array, 1);
+ declaration = &array_declaration->p;
+ array_declaration->len = len;
+ declaration_ref(elem_declaration);
+ array_declaration->elem = elem_declaration;
+ array_declaration->scope = new_declaration_scope(parent_scope);
+ declaration->id = CTF_TYPE_ARRAY;