- struct type_float *float_type;
- struct type *type;
- int ret;
-
- float_type = g_new(struct type_float, 1);
- type = &float_type->p;
- type->name = g_quark_from_string(name);
- type->alignment = alignment;
- type->copy = float_copy;
- type->type_free = _float_type_free;
- type->declaration_new = _float_declaration_new;
- type->declaration_free = _float_declaration_free;
- type->ref = 1;
- float_type->byte_order = byte_order;
-
- float_type->sign = integer_type_new(NULL, 1,
+ struct declaration_float *float_declaration;
+ struct declaration *declaration;
+
+ float_declaration = g_new(struct declaration_float, 1);
+ declaration = &float_declaration->p;
+ declaration->id = CTF_TYPE_FLOAT;
+ 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;
+
+ float_declaration->sign = integer_declaration_new(1,