Rename `BT_RANGE_SET_` to `BT_INTEGER_RANGE_SET_`
[babeltrace.git] / src / plugins / ctf / common / metadata / ctf-meta-translate.c
index 27611bc6834d04a4fccb602ba872fe5b0e96a0f1..1ac7aac311737f47db692275da19ec3ec867e954 100644 (file)
@@ -16,6 +16,7 @@
 #include "common/macros.h"
 #include "common/assert.h"
 #include <glib.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include <string.h>
 #include <inttypes.h>
@@ -115,11 +116,11 @@ bt_field_class *ctf_field_class_enum_to_ir(struct ctx *ctx,
                if (fc->base.is_signed) {
                        ret = bt_field_class_enumeration_signed_add_mapping(
                                ir_fc, mapping->label->str, range_set);
-                       BT_RANGE_SET_SIGNED_PUT_REF_AND_RESET(range_set);
+                       BT_INTEGER_RANGE_SET_SIGNED_PUT_REF_AND_RESET(range_set);
                } else {
                        ret = bt_field_class_enumeration_unsigned_add_mapping(
                                ir_fc, mapping->label->str, range_set);
-                       BT_RANGE_SET_UNSIGNED_PUT_REF_AND_RESET(range_set);
+                       BT_INTEGER_RANGE_SET_UNSIGNED_PUT_REF_AND_RESET(range_set);
                }
 
                BT_ASSERT(ret == 0);
@@ -302,7 +303,7 @@ bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
                                        bt_field_class_enumeration_signed_mapping_borrow_ranges_const(
                                                mapping);
                                BT_ASSERT(range_set);
-                               ret = bt_field_class_variant_with_selector_integer_signed_append_option(
+                               ret = bt_field_class_variant_with_selector_field_integer_signed_append_option(
                                        ir_fc, named_fc->name->str,
                                        option_ir_fc, range_set);
                        } else {
@@ -318,7 +319,7 @@ bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
                                        bt_field_class_enumeration_unsigned_mapping_borrow_ranges_const(
                                                mapping);
                                BT_ASSERT(range_set);
-                               ret = bt_field_class_variant_with_selector_integer_unsigned_append_option(
+                               ret = bt_field_class_variant_with_selector_field_integer_unsigned_append_option(
                                        ir_fc, named_fc->name->str,
                                        option_ir_fc, range_set);
                        }
This page took 0.023631 seconds and 4 git commands to generate.