scc

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

commit a0c41efbdb9763d954d3733021ef356c35c05ed6
parent 69f974c568329c43b9b199992d43322b8d50e0cc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 19 Jul 2015 12:04:27 +0200

Add better debug output to define()

All the debug outputs were marked excepted this one.

Diffstat:
Mcc1/cpp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -341,7 +341,7 @@ define(void) sprintf(buff, "%02d#", n); getdefs(args, n, buff+3, LINESIZ-3); sym->u.s = xstrdup(buff); - fprintf(stderr, "Defining macro '%s'='%s'\n", sym->name, buff); + fprintf(stderr, "MACRO '%s' defined as '%s'\n", sym->name, buff); popctx(); }