[hackers] [scc] Change format of castings || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 23 Sep 2015 20:33:10 +0200 (CEST)

commit daa0539caebccf335be2b5c68e39d9a461e4829a
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Sep 23 20:29:15 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Sep 23 20:29:15 2015 +0200

    Change format of castings
    
    Castings were expresed like two type specifier together, but
    it created some problems because it was difficult to know
    when a type specifier had to return a type or a node, so
    a new character was added to solve it.

diff --git a/cc1/code.c b/cc1/code.c
index 50945fc..aa5ee70 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -319,7 +319,7 @@ emitcast(unsigned op, void *arg)
 
         emitnode(lp);
         if (np->type != voidtype)
- printf("\t%c%c", lp->type->letter, np->type->letter);
+ printf("\tg%c", lp->type->letter, np->type->letter);
 }
 
 static void
Received on Wed Sep 23 2015 - 20:33:10 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 23 2015 - 20:36:13 CEST