From 2d8d5ffaee9701955828413f844afa1b3767f748 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 11 Jan 2025 00:52:21 +0200 Subject: futher struct continuation work --- include/ek/ast.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/ek/ast.h b/include/ek/ast.h index f8ffd8b..2ee9f6f 100644 --- a/include/ek/ast.h +++ b/include/ek/ast.h @@ -584,10 +584,9 @@ static inline bool is_primitive(struct type *t) #define struct_cont_id(x) return_s(x, AST_STRUCT_CONT_DEF) #define struct_cont_params(x) return_a0(x, AST_STRUCT_CONT_DEF) -#define struct_cont_behav(x) return_t1(x, AST_STRUCT_CONT_DEF) #define struct_cont_body(x) return_a1(x, AST_STRUCT_CONT_DEF) -#define gen_struct_cont(id, params, behav, body, loc) \ - gen_ast(AST_STRUCT_CONT_DEF, params, body, NULL, NULL, behav, id, 0, \ +#define gen_struct_cont(id, params, body, loc) \ + gen_ast(AST_STRUCT_CONT_DEF, params, body, NULL, NULL, NULL, id, 0, \ loc) #define val_id(x) return_s(x, AST_VAL) @@ -746,5 +745,6 @@ struct type *reverse_type_list(struct type *root); for (struct type *iter = nodes; iter; iter = iter->n) struct ast *chain_base(struct ast *node); +struct ast *clone_chain(struct ast *chain); #endif /* AST_H */ -- cgit v1.3