summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-02-06 21:33:40 -0800
committerOri Bernstein <ori@eigenstate.org>2019-02-06 21:33:40 -0800
commit77b41a0cc4e47ad0ab95f6144cd079d250e4b622 (patch)
tree5f7a8dba97b8fb31cbfbaf123d99a10402335d23
parentb31626248ea64c23d2020846e2cac1c751348b61 (diff)
downloadmc-77b41a0cc4e47ad0ab95f6144cd079d250e4b622.tar.gz
Fix indentation.
-rw-r--r--parse/type.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/parse/type.c b/parse/type.c
index 87c149b..a0c2855 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -427,30 +427,30 @@ hasparamsrec(Type *t, Bitset *visited)
case Typaram: return 1;
case Tygeneric: return 1;
case Tyname:
- for (i = 0; i < t->narg; i++)
- if (hasparamsrec(t->arg[i], visited))
- return 1;
- return hasparamsrec(t->sub[0], visited);
+ for (i = 0; i < t->narg; i++)
+ if (hasparamsrec(t->arg[i], visited))
+ return 1;
+ return hasparamsrec(t->sub[0], visited);
case Tyunres:
- for (i = 0; i < t->narg; i++)
- if (hasparamsrec(t->arg[i], visited))
- return 1;
- break;
+ for (i = 0; i < t->narg; i++)
+ if (hasparamsrec(t->arg[i], visited))
+ return 1;
+ break;
case Tystruct:
- for (i = 0; i < t->nmemb; i++)
- if (hasparamsrec(t->sdecls[i]->decl.type, visited))
- return 1;
- break;
+ for (i = 0; i < t->nmemb; i++)
+ if (hasparamsrec(t->sdecls[i]->decl.type, visited))
+ return 1;
+ break;
case Tyunion:
- for (i = 0; i < t->nmemb; i++)
- if (t->udecls[i]->etype && hasparamsrec(t->udecls[i]->etype, visited))
- return 1;
- break;
+ for (i = 0; i < t->nmemb; i++)
+ if (t->udecls[i]->etype && hasparamsrec(t->udecls[i]->etype, visited))
+ return 1;
+ break;
default:
- for (i = 0; i < t->nsub; i++)
- if (hasparamsrec(t->sub[i], visited))
- return 1;
- break;
+ for (i = 0; i < t->nsub; i++)
+ if (hasparamsrec(t->sub[i], visited))
+ return 1;
+ break;
}
return 0;
}