#include <babeltrace/ref.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/values.h>
+#include <babeltrace/types.h>
#include <limits.h>
#include <glib.h>
* Checks whether or not `stack` is empty.
*/
static
-bool type_stack_empty(type_stack *stack)
+bt_bool type_stack_empty(type_stack *stack)
{
return stack->len == 0;
}
{
int ret = 0;
GList *cur_ptoken = ptokens;
- bool first_level_done = false;
+ bt_bool first_level_done = BT_FALSE;
/* Get our own reference */
bt_get(type);
int child_index;
struct bt_ctf_field_type *child_type;
const char *field_name = ptoken_get_string(cur_ptoken);
- enum bt_ctf_type_id type_id =
+ enum bt_ctf_field_type_id type_id =
bt_ctf_field_type_get_type_id(type);
/* Find to which index corresponds the current path token */
/* Next path token */
cur_ptoken = g_list_next(cur_ptoken);
- first_level_done = true;
+ first_level_done = BT_TRUE;
}
/* Create new field path entry */
int tail_field_path_len =
tail_field_path->indexes->len;
- while (true) {
+ while (BT_TRUE) {
struct bt_ctf_field_type *cur_type =
type_stack_at(ctx->type_stack, i)->type;
int index = type_stack_at(
field_path1_len = field_path1->indexes->len;
field_path2_len = field_path2->indexes->len;
- while (true) {
+ while (BT_TRUE) {
int target_index, ctx_index;
if (lca_index == field_path2_len ||
goto end;
}
} else {
- assert(false);
+ assert(BT_FALSE);
}
end:
bt_ctf_field_type_variant_get_tag_name(type);
break;
default:
- assert(false);
+ assert(BT_FALSE);
ret = -1;
goto end;
}
goto end;
}
} else {
- assert(false);
+ assert(BT_FALSE);
}
end: