[hackers] [scc] Avoid print type letters in emitbin() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 14 Aug 2015 17:46:38 +0200 (CEST)

commit 5fb1525449fa2103cadc946ff467dec95a3da638
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 14 17:23:56 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 14 17:23:56 2015 +0200

    Avoid print type letters in emitbin()
    
    If there is no letter for the operator it means that is a non
    sense to print the type of the node.

diff --git a/cc1/code.c b/cc1/code.c
index ca4be29..e7d77b2 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -307,9 +307,10 @@ emitbin(unsigned op, void *arg)
 
         emitnode(np->left);
         emitnode(np->right);
- if ((s = optxt[op]) != NULL) /* do not print in OCOLON case */
+ if ((s = optxt[op]) != NULL) { /* do not print in OCOLON case */
                 printf("\t%s", optxt[op]);
- emitletter(np->type);
+ emitletter(np->type);
+ }
 }
 
 static void
Received on Fri Aug 14 2015 - 17:46:38 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 14 2015 - 17:48:12 CEST