diff options
| author | Toby Goodwin <toby@paccrat.org> | 2018-03-26 18:20:39 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2018-03-26 18:20:39 +0100 |
| commit | 969af168ea450bf79f800da620efefa91ed1f174 (patch) | |
| tree | 7529bca2579f102d23d4e3a000b6ec54312cf2d4 /tree.c | |
| parent | 9475ab261beabd848267f925940c15f9fd6eb96e (diff) | |
whitespace cleanups
Diffstat (limited to 'tree.c')
| -rw-r--r-- | tree.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -27,10 +27,10 @@ static Node *desugar_ifnot(Node *n) { Node *no = n->u[1].p->u[0].p; Node *els = nalloc(offsetof(Node, u[2])); els->type = nElse; - els->u[1].p = no->u[0].p; - els->u[0].p = yes->u[1].p; - yes->u[1].p = els; - n->u[1].p = n->u[1].p->u[1].p; + els->u[1].p = no->u[0].p; + els->u[0].p = yes->u[1].p; + yes->u[1].p = els; + n->u[1].p = n->u[1].p->u[1].p; } else goto fail; } @@ -68,7 +68,7 @@ extern Node *mk(enum nodetype t,...) { n = nalloc(offsetof(Node, u[1])); n->u[0].p = va_arg(ap, Node *); break; - case nAndalso: case nAssign: case nBackq: case nBody: case nBrace: case nConcat: + case nAndalso: case nAssign: case nBackq: case nBody: case nBrace: case nConcat: case nElse: case nEpilog: case nIf: case nNewfn: case nCbody: case nOrelse: case nPre: case nArgs: case nSwitch: case nMatch: case nVarsub: case nWhile: case nLappend: @@ -96,7 +96,7 @@ extern Node *mk(enum nodetype t,...) { n->u[1].i = va_arg(ap, int); n->u[2].p = va_arg(ap, Node *); break; - } + } n->type = t; n = desugar_ifnot(n); |