harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ce3d7577b37c2c56255e333fa133381100245ddb
parent 9a3c054915fd941de324a94cdd60325eccdae561
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 17 Apr 2022 19:56:04 -0400

Remove "items" from {ast_,}expression_alloc

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Minclude/ast.h | 5+----
Minclude/expr.h | 5+----
2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/include/ast.h b/include/ast.h @@ -123,10 +123,7 @@ struct ast_expression_access { struct ast_expression_alloc { enum alloc_kind kind; - union { - struct ast_expression *init; - struct ast_expression_list *items; - }; + struct ast_expression *init; struct ast_expression *cap; }; diff --git a/include/expr.h b/include/expr.h @@ -84,10 +84,7 @@ enum alloc_kind { struct expression_alloc { enum alloc_kind kind; - union { - struct expression *init; - struct expressions *items; - }; + struct expression *init; struct expression *cap; };