ref: dfd6b350e13d9915b819b92c890052d7474188c5
parent: d7ab9b5afef9e41134bab4f6fc5448204702c2ee
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Jan 23 00:46:04 EST 2016
Fix small problems in code.c These problems were caused due to a bad synchronyzation with other parts of the code, mainly cc.h
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -290,7 +290,7 @@
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 @@
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 @@
Symbol *sym = arg, **sp;
emitdcl(op, arg);
- puts("\n{");
+ puts("{");
for (sp = sym->u.pars; sp && *sp; ++sp)
emit(ODECL, *sp);