diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-10-27 18:00:35 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-10-27 18:00:35 +0300 |
commit | 198d4690a04f287ea2a2de8f5b000d54c652a3fc (patch) | |
tree | ef87055820603564c7c6e92ab2dae38179ebe62c | |
parent | 090d017cab487744c163369506926775fba0ecb4 (diff) | |
download | m4kwargs-198d4690a04f287ea2a2de8f5b000d54c652a3fc.tar.gz m4kwargs-198d4690a04f287ea2a2de8f5b000d54c652a3fc.tar.bz2 |
-rw-r--r-- | README | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2,9 +2,9 @@ M4KWARGS - keyword argument support for m4 macros ================================================= M4kwargs is a macro package that implements keyword arguments for -m4 macros. The implementation relies on the patsubst builtin, which -is available at least in GNU m4 and in FreeBSD m4. This package -has been tested with these two implementations. +m4 macros. It relies on the patsubst builtin, which is available at +least in GNU m4 and in FreeBSD m4. This package has been tested with +these two implementations. Installation ============ @@ -50,8 +50,8 @@ This will do the following: 1. Check if m4 provides the patsubst builtin. If not, an error message will be printed and m4 will terminate with exit status 1. -2. Check if second argument to patsubst is a basic or extended regular -expression. +2. Check if patsubst takes a basic or extended regular expression as its +second argument. 3. Prefix all built-in m4 identifiers with m4_. Note to GNU m4 users: don't use the -P (--prefix-builtins) option, as it will interfere with this step. @@ -61,8 +61,8 @@ All these steps are performed in a diversion, so that they add nothing to the output. The basic way of declaring keyword arguments is by using the KWARGS_ASGN -macro. This macro takes a comma-delimited list of argument assignments as -its arguments. Its expansion is empty. +macro. This macro takes as its arguments a comma-delimited list of +keyword=value assignments. Its expansion is empty. Suppose you want to write a macro INCR, that takes a single numeric argument and expands to its value incremented by one. If a keyword argument `delta' is |