shithub: scc

Download patch

ref: 3ef4900759c298520e75dd89019740350973b665
parent: e8b4caf9a047bd46d53cd9dc6c61575204c47d65
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 12 13:34:21 EDT 2015

Improve readbility od dumpstab output

--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -30,13 +30,13 @@
 			continue;
 		fprintf(stderr, "%d", (int) (bp - htab));
 		for (sym = *bp; sym; sym = sym->hash)
-			fprintf(stderr, "->%d,%d:%s",
+			fprintf(stderr, "->[%d,%d:%s]",
 			        sym->ns, sym->ctx, sym->name);
 		putc('\n', stderr);
 	}
 	fputs("head:", stderr);
 	for (sym = head; sym; sym = sym->next) {
-		fprintf(stderr, "->%d,%d:'%s'",
+		fprintf(stderr, "->[%d,%d:'%s']",
 		        sym->ns, sym->ctx,
 		        (sym->name) ? sym->name : "");
 	}