From e6811668a36f0bfaa6abe113bc25ed99473f8973 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sat, 26 Jun 2021 01:50:30 +0000 Subject: formatting: the long comments were annoying to read. --- mi/match.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/mi/match.c b/mi/match.c index ba69d90..f3e3689 100644 --- a/mi/match.c +++ b/mi/match.c @@ -955,11 +955,19 @@ gendtree(Node *m, Node *val, Node **lbl, size_t nlbl) fatal(pat[cur->i], "wildcard variables have different types in the or-patterns"); } } - /* If the match arm does not have or-pattern, we can insert the assignements of the captures at the beginning of the associated block. - * Otherwise, the captures can bind different locations with the same identifier in thehe or-patterns, and thus the assignments must be - * carried out before jumping into the block. - * For this reason, in the case of having or-pattern, we store the information of captures in the dtree MATCH node and delegate the - * insertion of the captures assignments to the ir generation of dtree */ + /* + * If the match arm does not have or-pattern, we can + * insert the assignements of the captures at the + * beginning of the associated block. Otherwise, + * the captures can bind different locations with + * the same identifier in thehe or-patterns, and + * thus the assignments must be carried out before + * jumping into the block. For this reason, in the + * case of having or-pattern, we store the + * information of captures in the dtree MATCH node + * and delegate the insertion of the captures + * assignments to the ir generation of dtree + */ if (cur->hasorpat) { cur->final->cap = cur->cap; cur->final->ncap = cur->ncap; -- cgit v1.1