#include <babeltrace/compiler.h>
#include <babeltrace/format.h>
+#include <endian.h>
static
struct definition *_float_definition_new(struct declaration *declaration,
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;
}
}
_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;
}