diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-03-28 06:36:19 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-03-28 06:36:19 -0700 |
commit | 99b2908d2d37addd97027a16239e700f19a64759 (patch) | |
tree | a1ba71c69698402fef132182f2e4b26a7ba341c0 /README.md | |
parent | 313c5510e2f13a551f5fa909bebbaa5463a720ee (diff) | |
download | cppawk-99b2908d2d37addd97027a16239e700f19a64759.tar.gz cppawk-99b2908d2d37addd97027a16239e700f19a64759.tar.bz2 cppawk-99b2908d2d37addd97027a16239e700f19a64759.zip |
README: mention new case header.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -53,7 +53,13 @@ library of useful standard headers. The foundation has been laid for this because when `#include <...>` is used (angle bracket include), it looks in a subdirectory called `cppawk-include` which is in the same directory as itself. For instance if `cppawk` is `/usr/bin/cppawk`, it looks in -`/usr/bin/cppawk-include`. This library directory is currently empty. +`/usr/bin/cppawk-include`. + +There is currently a `<case.h>` header file which provides a portable +`case` statement which efficiently translates to a GNU Awk `switch` statement or +else to less efficient but portable code. Additionally, the `case` statement +requires clauses to be explicit about whether they fall through or break, which +makes it safer to use. ## Why? @@ -104,4 +110,3 @@ itself. For instance if `cppawk` is `/usr/bin/cppawk`, it looks in ::c #include FOO_LIB // conditionally-defined macro to select lib - |