meta: replace bluelib with fx
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
#include "iterate.h"
|
||||
#include "node.h"
|
||||
|
||||
#include <blue/ds/string.h>
|
||||
#include <fx/ds/string.h>
|
||||
|
||||
static void to_string(struct ivy_ast_node *node, b_string *str)
|
||||
static void to_string(struct ivy_ast_node *node, fx_string *str)
|
||||
{
|
||||
struct ivy_ast_string_node *s = (struct ivy_ast_string_node *)node;
|
||||
b_string_append_cstrf(
|
||||
fx_string_append_cstrf(
|
||||
str, "%s (\"%s\")", ivy_ast_node_type_to_string(node->n_type),
|
||||
s->n_value->t_str);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ struct token_parse_result parse_string(struct ivy_parser *ctx, struct ivy_token
|
||||
}
|
||||
|
||||
child->n_value = tok;
|
||||
b_queue_push_back(&parent->n_value, &child->n_base.n_entry);
|
||||
fx_queue_push_back(&parent->n_value, &child->n_base.n_entry);
|
||||
return PARSE_RESULT(IVY_OK, 0);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ static enum ivy_status add_child(
|
||||
struct ivy_ast_fstring_node *str
|
||||
= (struct ivy_ast_fstring_node *)parent->s_node;
|
||||
|
||||
b_queue_push_back(&str->n_value, &child->n_entry);
|
||||
fx_queue_push_back(&str->n_value, &child->n_entry);
|
||||
|
||||
return IVY_OK;
|
||||
}
|
||||
@@ -68,12 +68,12 @@ static void collect_children(
|
||||
struct ivy_ast_node *node, struct ivy_ast_node_iterator *iterator)
|
||||
{
|
||||
struct ivy_ast_fstring_node *str = (struct ivy_ast_fstring_node *)node;
|
||||
b_queue_entry *entry = b_queue_first(&str->n_value);
|
||||
fx_queue_entry *entry = fx_queue_first(&str->n_value);
|
||||
while (entry) {
|
||||
struct ivy_ast_node *child
|
||||
= b_unbox(struct ivy_ast_node, entry, n_entry);
|
||||
= fx_unbox(struct ivy_ast_node, entry, n_entry);
|
||||
ast_node_iterator_enqueue_node(iterator, node, child);
|
||||
entry = b_queue_next(entry);
|
||||
entry = fx_queue_next(entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user