BT_ASSERT_PRE_NON_NULL(length_field, "Length field");
BT_ASSERT_PRE_FIELD_COMMON_IS_SET((void *) length_field, "Length field");
- BT_ASSERT_PRE(common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_INTEGER ||
- common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_ENUM,
+ BT_ASSERT_PRE(common_length_field->type->id == BT_FIELD_TYPE_ID_INTEGER ||
+ common_length_field->type->id == BT_FIELD_TYPE_ID_ENUM,
"Length field must be an integer or enumeration field: %!+wf",
length_field);
- if (common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_ENUM) {
+ if (common_length_field->type->id == BT_FIELD_TYPE_ID_ENUM) {
struct bt_ctf_field_enumeration *enumeration = (void *)
length_field;
unsigned int alignment, unsigned int size, bt_bool is_signed,
enum bt_ctf_byte_order byte_order)
{
- bt_bool rbo = (byte_order != BT_MY_BYTE_ORDER); /* reverse byte order */
+ bt_bool rbo = ((int) byte_order != BT_MY_BYTE_ORDER); /* reverse byte order */
if (!bt_ctf_stream_pos_align(pos, alignment))
return -EFAULT;
union intval value;
byte_order = (int) int_type->user_byte_order;
- if (byte_order == BT_BYTE_ORDER_NATIVE) {
+ if ((int) byte_order == BT_BYTE_ORDER_NATIVE) {
byte_order = native_byte_order;
}
unsigned int size;
byte_order = (int) flt_type->user_byte_order;
- if (byte_order == BT_BYTE_ORDER_NATIVE) {
+ if ((int) byte_order == BT_BYTE_ORDER_NATIVE) {
byte_order = native_byte_order;
}
}
BT_ASSERT(((struct bt_field_type_common *) ft)->id ==
- BT_CTF_FIELD_TYPE_ID_INTEGER);
+ BT_FIELD_TYPE_ID_INTEGER);
mapped_clock_class =
bt_ctf_field_type_integer_get_mapped_clock_class(ft);
if (!mapped_clock_class) {