scc

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

commit 22fcc158a35fb7abb01193fe7290f505cb6cec5b
parent 3ac7aacccae089572f5068ca516fe39ada4ead84
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 20 Jan 2024 23:02:01 +0100

make: Use getmacro() in dumpmacros()

It is required to dump the correct value if the option
-e us used.

Diffstat:
Msrc/cmd/make/parser.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/make/parser.c b/src/cmd/make/parser.c @@ -58,7 +58,7 @@ dumpmacros(void) for (pp = htab; pp < &htab[TABSIZ]; ++pp) { for (p = *pp; p; p = p->next) - printf("%s = %s\n", p->name, p->value); + printf("%s = %s\n", p->name, getmacro(p->value)); } }