lang: ast: fix compiler warnings
This commit is contained in:
@@ -69,8 +69,6 @@ struct ivy_ast_node_iterator_entry {
|
||||
unsigned int it_depth;
|
||||
};
|
||||
|
||||
typedef enum ivy_status(*ivy_ast_node_iteration_callback)(struct ivy_ast_node *, struct ivy_ast_node_iterator *);
|
||||
|
||||
struct ivy_ast_node {
|
||||
enum ivy_ast_node_type n_type;
|
||||
b_queue_entry n_entry;
|
||||
@@ -239,6 +237,9 @@ struct ivy_ast_do_node {
|
||||
b_queue n_members;
|
||||
};
|
||||
|
||||
typedef enum ivy_status (*ivy_ast_node_iteration_callback)(
|
||||
struct ivy_ast_node *, struct ivy_ast_node_iterator *);
|
||||
|
||||
IVY_API enum ivy_status ivy_parser_create(struct ivy_parser **parser);
|
||||
IVY_API void ivy_parser_destroy(struct ivy_parser *parser);
|
||||
|
||||
@@ -251,8 +252,7 @@ IVY_API enum ivy_status ivy_parser_push_token(
|
||||
struct ivy_parser *parser, struct ivy_token *tok);
|
||||
|
||||
IVY_API enum ivy_status ivy_ast_node_iterate(
|
||||
struct ivy_ast_node *node,
|
||||
struct ivy_ast_node_iterator *it,
|
||||
struct ivy_ast_node *node, struct ivy_ast_node_iterator *it,
|
||||
ivy_ast_node_iteration_callback callback);
|
||||
IVY_API void ivy_ast_node_print(struct ivy_ast_node *node);
|
||||
IVY_API void ivy_ast_node_destroy(struct ivy_ast_node *node);
|
||||
|
||||
Reference in New Issue
Block a user