summaryrefslogtreecommitdiff
path: root/libexec/tradcpp/eval.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-09-02 08:28:06 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-09-02 08:28:06 +0000
commit4c2476d8511b0f7bb17501a58e321d973e039d5f (patch)
treef1665fec409d3267b3a9880250832e7a4a71ac37 /libexec/tradcpp/eval.c
parent216272ce4a2cdbc9fdfa43c1f4d892c4ae50d05e (diff)
update tradcpp to 0.5.2
ok miko@ bcallah@ deraadt@
Diffstat (limited to 'libexec/tradcpp/eval.c')
-rw-r--r--libexec/tradcpp/eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/tradcpp/eval.c b/libexec/tradcpp/eval.c
index cb5db991364..870ac6cf14d 100644
--- a/libexec/tradcpp/eval.c
+++ b/libexec/tradcpp/eval.c
@@ -642,6 +642,7 @@ wordval(struct place *p, char *word)
complain_fail();
}
}
+ debuglog(p, "Undefined symbol %s; substituting 0", word);
return 0;
}
@@ -744,6 +745,7 @@ eval(struct place *p, char *expr)
#ifdef DEBUG
fprintf(stderr, "eval: %s\n", expr);
#endif
+ debuglog(p, "eval: %s", expr);
tokenarray_init(&tokens);
tokenize(p, expr);