shithub: scc

Download patch

ref: a0e2bdc94eb6fd60818d9278fe7ab23d223518ae
parent: 04b3480cb426c38028b895d6ab38cd108a9aefae
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Jul 19 07:28:14 EDT 2015

Improve dumpstab()

Since stdio.h is already included is not needed include it again,
and substitute fputs-puts by a fprintf call.

--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -18,14 +18,12 @@
 static Symbol *htab[NR_SYM_HASH];
 
 #ifndef NDEBUG
-#include <stdio.h>
 void
 dumpstab(char *msg)
 {
 	Symbol **bp, *sym;
 
-	fputs(msg, stderr);
-	putc('\n', stderr);
+	fprintf(stderr, "%s\n", msg);
 	for (bp = htab; bp < &htab[NR_SYM_HASH]; ++bp) {
 		if (*bp == NULL)
 			continue;