lang: update bluelib api usage
This commit is contained in:
@@ -55,12 +55,12 @@ static enum ivy_status get_eval_type(
|
||||
{
|
||||
struct mie_type *type = NULL;
|
||||
|
||||
b_queue_iterator it;
|
||||
b_queue_foreach (&it, &state->s_edges) {
|
||||
b_queue_entry *entry = b_queue_first(&state->s_edges);
|
||||
while (entry) {
|
||||
struct mie_phi_edge *edge
|
||||
= b_unbox(struct mie_phi_edge, it.entry, e_entry);
|
||||
= b_unbox(struct mie_phi_edge, entry, e_entry);
|
||||
if (!edge->e_value) {
|
||||
continue;
|
||||
goto next;
|
||||
}
|
||||
|
||||
struct mie_type *edge_type
|
||||
@@ -68,8 +68,10 @@ static enum ivy_status get_eval_type(
|
||||
|
||||
if (!type) {
|
||||
type = edge_type;
|
||||
continue;
|
||||
}
|
||||
|
||||
next:
|
||||
entry = b_queue_next(entry);
|
||||
}
|
||||
|
||||
*out = type;
|
||||
@@ -92,13 +94,14 @@ static enum ivy_status emit_phi_instr(
|
||||
|
||||
size_t i = 0;
|
||||
|
||||
b_queue_iterator it;
|
||||
b_queue_foreach (&it, &state->s_edges) {
|
||||
b_queue_entry *entry = b_queue_first(&state->s_edges);
|
||||
while (entry) {
|
||||
struct mie_phi_edge *edge
|
||||
= b_unbox(struct mie_phi_edge, it.entry, e_entry);
|
||||
= b_unbox(struct mie_phi_edge, entry, e_entry);
|
||||
|
||||
memcpy(&edges[i], edge, sizeof *edge);
|
||||
i++;
|
||||
entry = b_queue_next(entry);
|
||||
}
|
||||
|
||||
struct mie_value *phi = mie_builder_phi(
|
||||
|
||||
Reference in New Issue
Block a user