Commit 983003c6 authored by Guillaume Charifi's avatar Guillaume Charifi

compiler/parser: Export clone_type().

parent 8f6031a5
......@@ -641,7 +641,7 @@ failed:
return -1;
}
static int clone_type(struct bm_ast_type *type, struct bm_ast_type *out)
int clone_type(struct bm_ast_type *type, struct bm_ast_type *out)
{
int result;
......
......@@ -45,6 +45,7 @@ extern int clone_class_path(struct bm_ast_class_path *class_path, struct bm_ast_
extern int destroy_type(struct bm_ast_type *type);
extern int debug_type(const struct bm_ast_type *type);
extern int parse_type(struct parser_ctx *ctx, unsigned long *cur_tok_id, struct bm_ast_type *out);
extern int clone_type(struct bm_ast_type *type, struct bm_ast_type *out);
extern int parser_node_init_unknown(struct bm_ast_node *node);
extern int destroy_decl(struct bm_ast_decl *decl);
extern int debug_decl(const struct bm_ast_decl *decl, int indent_lvl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment