g_array_set_size(stack->entries, stack->size + 1);
}
- entry = &g_array_index(stack->entries, struct stack_entry, stack->size);
+ entry = &bt_g_array_index(stack->entries, struct stack_entry, stack->size);
entry->base = base;
entry->index = 0;
stack->size++;
{
BT_ASSERT_DBG(stack);
BT_ASSERT_DBG(stack_size(stack));
- return &g_array_index(stack->entries, struct stack_entry, stack->size - 1);
+ return &bt_g_array_index(stack->entries, struct stack_entry, stack->size - 1);
}
static inline bool stack_empty(struct stack *stack)
}
if (G_UNLIKELY(int_fc->storing_index >= 0)) {
- g_array_index(msg_it->stored_values, uint64_t, (uint64_t) int_fc->storing_index) = value;
+ bt_g_array_index(msg_it->stored_values, uint64_t, (uint64_t) int_fc->storing_index) = value;
}
if (G_UNLIKELY(!fc->in_ir || msg_it->dry_run)) {
BT_ASSERT_DBG(int_fc->meaning == CTF_FIELD_CLASS_MEANING_NONE);
if (G_UNLIKELY(int_fc->storing_index >= 0)) {
- g_array_index(msg_it->stored_values, uint64_t, (uint64_t) int_fc->storing_index) =
+ bt_g_array_index(msg_it->stored_values, uint64_t, (uint64_t) int_fc->storing_index) =
(uint64_t) value;
}
int64_t length;
int ret;
- length = (uint64_t) g_array_index(msg_it->stored_values, uint64_t, seq_fc->stored_length_index);
+ length =
+ (uint64_t) bt_g_array_index(msg_it->stored_values, uint64_t, seq_fc->stored_length_index);
if (G_UNLIKELY(msg_it->dry_run)) {
goto end;
} tag;
/* Get variant's tag */
- tag.u = g_array_index(msg_it->stored_values, uint64_t, var_fc->stored_tag_index);
+ tag.u = bt_g_array_index(msg_it->stored_values, uint64_t, var_fc->stored_tag_index);
/*
* Check each range to find the selected option's index.