From 6fc3b2c676022bc95eaf275e1c9d58bffedfbdad Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 24 Mar 2022 23:06:58 -0700 Subject: Pass -std=c99 to cpp to remove crap like #define linux. --- testcases | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'testcases') diff --git a/testcases b/testcases index 6e256ce..06a399c 100644 --- a/testcases +++ b/testcases @@ -187,7 +187,7 @@ yes 33: $cppawk --prepro-only --prepro=./testdir/testcpp abc : -[-iq][-D_][-D_][-I.][-] +[-iq][-D_][-D_][-st][-I.][-] -- 34: $cppawk --prepro-only --awk=mawk mawk=__mawk__ | grep mawk @@ -245,3 +245,8 @@ testdir/name.cwk $cppawk --dump-macros '#define foo_bar 42' | grep foo_bar : #define foo_bar 42 +-- +43: +$cppawk --dump-macros x | (grep -q '#define [A-Za-z]' || echo "clean") +: +clean -- cgit v1.2.3