From 99b2908d2d37addd97027a16239e700f19a64759 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 28 Mar 2022 06:36:19 -0700 Subject: README: mention new case header. --- README.md | 9 +++++++-- 1 file 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 `` 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 - -- cgit v1.2.3