shithub: scc

Download patch

ref: f82124efc20c2976037f821cfa502b03f11bd2a6
parent: a951173828d4c5fad5de2c54576cb01ad484dbae
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Apr 4 10:24:29 EDT 2022

cc1: Improve message output in expand()

The debug output was too cryptic and addign the meaning of the
printed values helps to identify the state.

--- a/src/cmd/cc/cc1/cpp.c
+++ b/src/cmd/cc/cc1/cpp.c
@@ -276,7 +276,8 @@
 	char *arglist[NR_MACROARG];
 	char arguments[INPUTSIZ], buffer[INPUTSIZ];
 
-	DBG("MACRO '%s' detected %d %d", sym->name, disexpand, sym->hide);
+	DBG("MACRO '%s' detected disexpand=%d hide=%d",
+	    sym->name, disexpand, sym->hide);
 
 	if (disexpand || sym->hide)
 		return 0;