Add base integer attribute, and use it in ctf-text
[babeltrace.git] / types / float.c
index 1efd5ed3624ccf4be0c9469d1a88aabd55d44e5a..2306d94f1b17cecd48df03b89343efe507fe8256 100644 (file)
@@ -57,11 +57,11 @@ struct declaration_float *
        float_declaration->byte_order = byte_order;
 
        float_declaration->sign = integer_declaration_new(1,
-                                           byte_order, false, 1);
+                                           byte_order, false, 1, 2);
        float_declaration->mantissa = integer_declaration_new(mantissa_len - 1,
-                                               byte_order, false, 1);
+                                               byte_order, false, 1, 10);
        float_declaration->exp = integer_declaration_new(exp_len,
-                                          byte_order, true, 1);
+                                          byte_order, true, 1, 10);
        return float_declaration;
 }
 
@@ -103,6 +103,8 @@ struct definition *
        }
        _float->p.ref = 1;
        _float->p.index = index;
+       _float->p.name = field_name;
+       _float->p.path = new_definition_path(parent_scope, field_name);
        _float->value = 0.0;
        return &_float->p;
 }
This page took 0.024294 seconds and 4 git commands to generate.