- float_type = g_new(struct type_float, 1);
- type = &float_type->p;
- type->id = CTF_TYPE_FLOAT;
- type->name = g_quark_from_string(name);
- type->alignment = alignment;
- type->copy = float_copy;
- type->type_free = _float_type_free;
- type->definition_new = _float_definition_new;
- type->definition_free = _float_definition_free;
- type->ref = 1;
- float_type->byte_order = byte_order;
+ float_declaration = g_new(struct declaration_float, 1);
+ declaration = &float_declaration->p;
+ declaration->id = CTF_TYPE_FLOAT;
+ declaration->name = g_quark_from_string(name);
+ declaration->alignment = alignment;
+ declaration->copy = float_copy;
+ declaration->declaration_free = _float_declaration_free;
+ declaration->definition_new = _float_definition_new;
+ declaration->definition_free = _float_definition_free;
+ declaration->ref = 1;
+ float_declaration->byte_order = byte_order;