scc

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

commit 6234ca1a96d4ff39e0e236337008886684af6237
parent 8fd6d549ca3d5dc3072327e31f85e2ef9b8de088
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  7 Jan 2016 21:22:52 +0100

Convert pcompare() to use new fields of type

Diffstat:
Mcc1/expr.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -7,6 +7,8 @@ #include "../inc/sizes.h" #include "cc1.h" +#define XCHG(lp, rp, np) (np = lp, lp = rp, rp = np) + Node *expr(void); bool @@ -288,8 +290,6 @@ convert(Node *np, Type *newtp, char iscast) return castcode(np, newtp); } -#define XCHG(lp, rp, np) (np = lp, lp = rp, rp = np) - static Node * parithmetic(char op, Node *lp, Node *rp) {