scc

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

commit 00f3f535342d3e8fedd68d6171cb3498574fcfe4
parent b141af6efba350a99963ab4db6dc2204a4e92b56
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 21 Feb 2017 20:38:10 +0100

[cc1] Remove old bits from anciant times

Once upon a time when it was a requirement to be able to run this compiler
in a z80 system, and some types were used to allow an eficient program
for that architecture.

Diffstat:
Mcc1/cc1.h | 2+-
Mcc1/expr.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -438,7 +438,7 @@ extern TUINT ones(int nbytes); /* expr.c */ extern Node *decay(Node *), *negate(Node *np), *assign(void); -extern Node *convert(Node *np, Type *tp1, char iscast); +extern Node *convert(Node *np, Type *tp1, int iscast); extern Node *constexpr(void), *condexpr(int neg), *expr(void); extern int isnodecmp(int op); extern int negop(int op); diff --git a/cc1/expr.c b/cc1/expr.c @@ -237,7 +237,7 @@ numericaluop(int op, Node *np) } Node * -convert(Node *np, Type *newtp, char iscast) +convert(Node *np, Type *newtp, int iscast) { Type *oldtp = np->type;