}
for (i = 0; i < tail_field_path_len; i++) {
- int index = g_array_index(
+ int index = bt_g_array_index(
tail_field_path->indexes,
int, i);
for (i = 0; i < field_path->indexes->len; i++) {
struct bt_ctf_field_type_common *child_type;
int child_index =
- g_array_index(field_path->indexes, int, i);
+ bt_g_array_index(field_path->indexes, int, i);
/* Get child field type */
child_type = bt_ctf_field_type_common_borrow_field_at_index(type,
break;
}
- target_index = g_array_index(field_path1->indexes, int,
+ target_index = bt_g_array_index(field_path1->indexes, int,
lca_index);
- ctx_index = g_array_index(field_path2->indexes, int,
+ ctx_index = bt_g_array_index(field_path2->indexes, int,
lca_index);
if (target_index != ctx_index) {
* Make sure the target field path is located before the
* context field path.
*/
- target_index = g_array_index(target_field_path->indexes,
+ target_index = bt_g_array_index(target_field_path->indexes,
int, lca_index);
- ctx_index = g_array_index(ctx_field_path->indexes,
+ ctx_index = bt_g_array_index(ctx_field_path->indexes,
int, lca_index);
if (target_index >= ctx_index) {