scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 5c6da024b4f87d1a4d91cfa818f8963ec7e03595
parent 5707eb558192a44df20f3da9dea2f81c14453572
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 10 Aug 2015 09:17:20 +0200

Small style changes

Diffstat:
Mcc1/expr.c | 6++++--
Mcc1/types.c | 1-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -517,7 +517,8 @@ compare(char op, Node *lp, Node *rp) lp = eval(lp); rp = eval(rp); switch (BTYPE(lp)) { - case INT: case FLOAT: + case INT: + case FLOAT: switch (BTYPE(lp)) { case INT: case FLOAT: @@ -532,7 +533,8 @@ compare(char op, Node *lp, Node *rp) goto nocompat; } break; - case ARY: case FTN: + case ARY: + case FTN: lp = decay(lp); case PTR: return pcompare(op, lp, rp); diff --git a/cc1/types.c b/cc1/types.c @@ -288,7 +288,6 @@ mktype(Type *tp, unsigned op, short nelem, Type *pars[]) type.n.elem = nelem; type.ns = 0; - switch (op) { case ARY: if (nelem == 0)