commit dfd6b350e13d9915b819b92c890052d7474188c5
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Jan 23 05:46:04 2016 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
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
@@ -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)
@@ -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;
 }
 
@@ -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);

Reply via email to