scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 6b8a852b671c3a2a5eb677d36c898ef92ca4373b
parent be4423bd4bd1832236035d7fee65ed11cc50c52b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  4 Apr 2022 14:24:29 +0200

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.

Diffstat:
Msrc/cmd/cc/cc1/cpp.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cmd/cc/cc1/cpp.c b/src/cmd/cc/cc1/cpp.c @@ -276,7 +276,8 @@ expand(Symbol *sym) 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;