From 7f9133cd98879c7d8cee249b7433973b37c52832 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 23 Mar 2022 07:29:56 -0700 Subject: Add options --prepro and --awk. --- testcases | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'testcases') diff --git a/testcases b/testcases index 2cd3ed4..3eb492d 100644 --- a/testcases +++ b/testcases @@ -178,3 +178,23 @@ foo_bar #endif' | grep foo_bar : foo_bar +-- +32: +./cppawk --awk='printf "[%.2s]"' foo +: +[-f][/t][--] +-- +33: +./cppawk --prepro-only --prepro='printf %.3s' abc +: +-iq-D_-I.- +-- +34: +./cppawk --prepro-only --awk=mawk mawk=__mawk__ | grep mawk +: +mawk=1 +-- +35: +./cppawk --prepro-only --awk=mawk gawk=__gawk__ | grep gawk +: +gawk=__gawk__ -- cgit v1.2.3