X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Ffloat.c;fp=types%2Ffloat.c;h=7b89a89f564844f10e89bfdd27ddbc5173eaa2d0;hp=0fc137f7522b1e8c51d38db2b7ae0a40a682f940;hb=becd02a104b8c1634ce914d1d2cd36be932b9b16;hpb=2552c374b9c87056187ff9af572f9fba7ee7839d diff --git a/types/float.c b/types/float.c index 0fc137f7..7b89a89f 100644 --- a/types/float.c +++ b/types/float.c @@ -52,7 +52,7 @@ void _float_declaration_free(struct declaration *declaration) } struct declaration_float * - float_declaration_new(size_t mantissa_len, + bt_float_declaration_new(size_t mantissa_len, size_t exp_len, int byte_order, size_t alignment) { struct declaration_float *float_declaration; @@ -68,13 +68,13 @@ struct declaration_float * declaration->ref = 1; float_declaration->byte_order = byte_order; - float_declaration->sign = integer_declaration_new(1, + float_declaration->sign = bt_integer_declaration_new(1, byte_order, false, 1, 2, CTF_STRING_NONE, NULL); - float_declaration->mantissa = integer_declaration_new(mantissa_len - 1, + float_declaration->mantissa = bt_integer_declaration_new(mantissa_len - 1, byte_order, false, 1, 10, CTF_STRING_NONE, NULL); - float_declaration->exp = integer_declaration_new(exp_len, + float_declaration->exp = bt_integer_declaration_new(exp_len, byte_order, true, 1, 10, CTF_STRING_NONE, NULL); return float_declaration;