Commit 8f6031a5 authored by Guillaume Charifi's avatar Guillaume Charifi

compiler/parser: Export clone_class_path().

parent e06e6612
......@@ -381,7 +381,7 @@ int parse_class_path(struct parser_ctx *ctx, unsigned long *cur_tok_id, struct b
return 0;
}
static int clone_class_path(struct bm_ast_class_path *class_path, struct bm_ast_class_path *out)
int clone_class_path(struct bm_ast_class_path *class_path, struct bm_ast_class_path *out)
{
return buffer_clone(&class_path->seqs, &out->seqs);
}
......
......@@ -41,6 +41,7 @@ extern int parse_var_name(wchar_t *name);
extern int destroy_class_path(struct bm_ast_class_path *class_path);
extern int debug_class_path(const struct bm_ast_class_path *class_path);
extern int parse_class_path(struct parser_ctx *ctx, unsigned long *cur_tok_id, struct bm_ast_class_path *out);
extern int clone_class_path(struct bm_ast_class_path *class_path, struct bm_ast_class_path *out);
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);
......
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