diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-14 14:50:08 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-14 14:50:08 -0400 |
commit | aee7f7551139af26cc15fe593de8825af77dea4f (patch) | |
tree | 13dc06a2e7288e2ae6e265ca6712a22fcadf0e27 /infer.c | |
parent | 8b2384c94e2f5834f3b8929f982a19edde1503d9 (diff) |
formatting cleanup
Diffstat (limited to 'infer.c')
-rw-r--r-- | infer.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -121,8 +121,7 @@ static bool infer_from_type(Typer *tr, Type *match, Type *to, Identifier *idents return false; break; case TYPE_STRUCT: - /* this would be difficult because match could contain #ifs and - no sane person will ever write something that needs this */ + // this would be difficult because match could contain #ifs and no one will ever need this break; case TYPE_EXPR: { Type type; @@ -148,7 +147,7 @@ static bool infer_from_type(Typer *tr, Type *match, Type *to, Identifier *idents return true; } -/* +/* match and to are dynamic arrays of equal size idents is a dyn array of distinct identifiers find the value of each ident by matching match[i] to to[i], i = 0..arr_len(match)-1 |