[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Include directive bug fix
From: |
J Naman |
Subject: |
Re: Include directive bug fix |
Date: |
Sat, 6 May 2023 13:03:47 -0400 |
One way to achieve "the behaviour of C++ preprocessor's #include
directive." is to use cppawk, a tiny shell script that is used like awk. It
invokes the C preprocessor (GNU cpp) on the Awk code and calls Awk on the
result. see:
https://www.kylheku.com/cgit/cppawk/
Another option is Jon Bentley's m1--Simple Macro Preprocessor, with the
source code listed in the most excellent "sed & awk" book and O'reilly
publications web page:
https://docstore.mik.ua/orelly/unix3/sedawk/ch13_10.htm
So, why should Gawk be modified (and possibly break my
exisiting @includes?) when open-source solutions are available?