scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit a0e2bdc94eb6fd60818d9278fe7ab23d223518ae
parent 04b3480cb426c38028b895d6ab38cd108a9aefae
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 19 Jul 2015 11:28:14 +0200

Improve dumpstab()

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

Diffstat:
Mcc1/symbol.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -18,14 +18,12 @@ static Symbol *head; 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;