diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-11 00:52:21 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-11 00:52:21 +0200 |
| commit | 2d8d5ffaee9701955828413f844afa1b3767f748 (patch) | |
| tree | 0eab7acec6f06b3a4da61a8207dace8524810652 /include | |
| parent | 2d90cea9adb9a3f73cd5b211a4ed9508b505729f (diff) | |
| download | ek-2d8d5ffaee9701955828413f844afa1b3767f748.tar.gz ek-2d8d5ffaee9701955828413f844afa1b3767f748.zip | |
futher struct continuation work
Diffstat (limited to 'include')
| -rw-r--r-- | include/ek/ast.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |
