[hackers] [scc] Fix small problems in code.c || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 23 Jan 2016 10:20:11 +0100 (CET)

commit dfd6b350e13d9915b819b92c890052d7474188c5
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 23 05:46:04 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 23 05:46:04 2016 +0100

    Fix small problems in code.c
    
    These problems were caused due to a bad synchronyzation
    with other parts of the code, mainly cc.h

diff --git a/cc1/code.c b/cc1/code.c
index b14e459..0216653 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -290,7 +290,7 @@ emitstring(Symbol *sym, Type *tp)
                 while (isprint(*bp) && bp < lim)
                         ++bp;
                 if ((n = bp - s) > 1)
- printf("\t#%c%.*s\n", L_NAME, n, s);
+ printf("\t#\"%.*s\n", n, s);
                 else
                         bp = s;
                 if (bp == lim)
_AT_@ -377,8 +377,7 @@ emitdcl(unsigned op, void *arg)
         putchar('\t');
         emitletter(sym->type);
         printf("\t\"%s", (sym->name) ? sym->name : "");
- if (op != OFUN)
- putchar('\n');
+ putchar('\n');
         sym->flags |= ISEMITTED;
 }
 
_AT_@ -422,7 +421,7 @@ emitfun(unsigned op, void *arg)
         Symbol *sym = arg, **sp;
 
         emitdcl(op, arg);
- puts("\n{");
+ puts("{");
 
         for (sp = sym->u.pars; sp && *sp; ++sp)
                 emit(ODECL, *sp);
Received on Sat Jan 23 2016 - 10:20:11 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 23 2016 - 10:24:17 CET