Fix: bt_ctf_field_type_floating_point_copy(): set self references
[babeltrace.git] / include / babeltrace / ctf-ir / event-types-internal.h
index ec114eb00369f8412f8d6b4f00dbc5dd058676d2..5bc46c4ee427f3753b53b93f0d1f9e02febd0e01 100644 (file)
@@ -110,6 +110,12 @@ struct bt_ctf_field_type_enumeration {
 struct bt_ctf_field_type_floating_point {
        struct bt_ctf_field_type parent;
        struct declaration_float declaration;
+
+       /*
+        * The `declaration` field above contains 3 pointers pointing
+        * to the fields below. This avoids unnecessary dynamic
+        * allocations.
+        */
        struct declaration_integer sign;
        struct declaration_integer mantissa;
        struct declaration_integer exp;
This page took 0.023203 seconds and 4 git commands to generate.