scc

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

commit 401efa0d74d58e83b9f8754f738679c132742123
parent 292c2611dbb22bc78f2fea52eda82252f071491b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 25 Apr 2014 15:02:21 +0200

Use C for unsigned char

Almost of the computer use an unsigned char for char,
so it is more logical use the 'C' for for unsigned char, and
then we will get a more logical intermediate language.

Diffstat:
Mcc1/types.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc1/types.c b/cc1/types.c @@ -26,20 +26,20 @@ Type }, *schartype = &(Type) { .op = INT, - .letter = 'C', + .letter = 'M', .defined = 1, .u.rank = RANK_SCHAR }, *uchartype = &(Type) { .op = INT, - .letter = 'M', + .letter = 'C', .sign = 1, .defined = 1, .u.rank = RANK_UCHAR }, *chartype = &(Type) { .op = INT, - .letter = 'M', + .letter = 'C', .sign = 1, .defined = 1, .u.rank = RANK_UCHAR