aboutsummaryrefslogtreecommitdiffstats
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Add function for shell quoting.Kaz Kylheku2023-06-262-0/+106
| | | | | | | | | | | | | * README.md: Mention <quote.h> and cppawk-quote man page. * share/cppawk/include/quote.h, * share/cppawk/include/quote-priv.h: New files. * testcases-quote: New file. * cppawk-quote.1: New file. * runtests: Add testcases-quote.
* Implement -E option and <safearg.h> header.Kaz Kylheku2022-07-171-0/+48
| | | | | | | | | | | | | | | The -E option is not passed through to the Awk implementation any more, which is not particularly useful, because the option resembles -f, and its argument requires likewise handling. We achieve the semantics that -E <name> is equivalent to -f <name> --. From the GNU Awk user's perspective, this is a regression in the semantics of -E which also has the effect of suppressing the processing of arguments which look like variable assignments. To make up for that, we provide the <safearg.h> header which suppresses all implicit treatment of the remaining arguments.
* Don't pull in $0 into diagnostics by accident.Kaz Kylheku2022-07-021-1/+1
| | | | Reported by Paul A. Patience.
* Restructure cppawk installation.Kaz Kylheku2022-07-0215-0/+2695
cppawk now expects to be installed in some directory (typically "bin"), such that the include files are in a "share/cppawk/include" directory where "share" is a sibling of "bin". The git repository is restructured to match this shape; cppawk is moved into "bin", and the include files into "share/cppawk/include".