+ _float = g_new(struct definition_float, 1);
+ declaration_ref(&float_declaration->p);
+ _float->p.declaration = declaration;
+ _float->declaration = float_declaration;
+ if (float_declaration->byte_order == LITTLE_ENDIAN) {
+ tmp = float_declaration->mantissa->p.definition_new(&float_declaration->mantissa->p,
+ parent_scope, g_quark_from_static_string("mantissa"), 0);
+ _float->mantissa = container_of(tmp, struct definition_integer, p);
+ tmp = float_declaration->exp->p.definition_new(&float_declaration->exp->p,
+ parent_scope, g_quark_from_static_string("exp"), 1);
+ _float->exp = container_of(tmp, struct definition_integer, p);
+ tmp = float_declaration->sign->p.definition_new(&float_declaration->sign->p,
+ parent_scope, g_quark_from_static_string("sign"), 2);
+ _float->sign = container_of(tmp, struct definition_integer, p);
+ } else {
+ tmp = float_declaration->sign->p.definition_new(&float_declaration->sign->p,
+ parent_scope, g_quark_from_static_string("sign"), 0);
+ _float->sign = container_of(tmp, struct definition_integer, p);
+ tmp = float_declaration->exp->p.definition_new(&float_declaration->exp->p,
+ parent_scope, g_quark_from_static_string("exp"), 1);
+ _float->exp = container_of(tmp, struct definition_integer, p);
+ tmp = float_declaration->mantissa->p.definition_new(&float_declaration->mantissa->p,
+ parent_scope, g_quark_from_static_string("mantissa"), 2);
+ _float->mantissa = container_of(tmp, struct definition_integer, p);
+ }