shithub: scc

Download patch

ref: a0c41efbdb9763d954d3733021ef356c35c05ed6
parent: 69f974c568329c43b9b199992d43322b8d50e0cc
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Jul 19 08:04:27 EDT 2015

Add better debug output to define()

All the debug outputs were marked excepted this one.

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -341,7 +341,7 @@
 	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();
 }