- float_class = g_new(struct type_class_float, 1);
- type_class = &float_class->p;
+ 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;