aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-28 06:36:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-28 06:36:19 -0700
commit99b2908d2d37addd97027a16239e700f19a64759 (patch)
treea1ba71c69698402fef132182f2e4b26a7ba341c0
parent313c5510e2f13a551f5fa909bebbaa5463a720ee (diff)
downloadcppawk-99b2908d2d37addd97027a16239e700f19a64759.tar.gz
cppawk-99b2908d2d37addd97027a16239e700f19a64759.tar.bz2
cppawk-99b2908d2d37addd97027a16239e700f19a64759.zip
README: mention new case header.
-rw-r--r--README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index 06871a0..f6bbf63 100644
--- a/README.md
+++ b/README.md
@@ -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
-