diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-10-17 07:39:21 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-10-17 07:49:49 +0300 |
commit | 10a9035e6764945748555dde6af255f55d8f5ad2 (patch) | |
tree | b298f76313f19dd2a3380f8400c828e6a21f47c9 /README | |
parent | a1e13cc50fca680b52355e7ac261dd29088f04cd (diff) | |
download | m4kwargs-10a9035e6764945748555dde6af255f55d8f5ad2.tar.gz m4kwargs-10a9035e6764945748555dde6af255f55d8f5ad2.tar.bz2 |
Fix empty argument handling.
* m4/Makefile (install): Add dnl after changequote
* m4/kwargs.m4: Divert everything to -1.
(KWARG_SET): Tolerate empty argument.
(m4_kwargs_parse): Don't stop on empty arguments.
(KWARGS_DUMP): Change arguments.
(KWARGS_LIST): New macro.
* t/define.t: Reflect changes to KWARGS_DUMP.
* t/dump.t: Likewise.
* t/null.t: Likewise.
Diffstat (limited to 'README')
-rw-r--r-- | README | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -109,9 +109,12 @@ by category. Debugging --------- -KWARGS_DUMP([PREFIX]) - Dump all keyword arguments to stdout, each on a separate line, prefixed - with PREFIX. +KWARGS_DUMP([DELIM],[EXP]) + For each defined keyword argument, produce the following expansion: + + EXP(`KW=VAL')DELIM + + DELIM defaults to newline, EXP - to m4_quote, Keyword arguments access macros ------------------------------- @@ -140,6 +143,10 @@ KWARGS_FOREACH(ITERATOR, TEXT) TEXT is appended to the expansion of KWARGS_FOREACH. TEXT may refer to ITERATOR. Any definition of ITERATOR prior to this invocation is restored. +KWARGS_LIST() + Expand to a comma-delimited list of quoted keyword arguments, suitable for + use as argument list to a macro. + Expansion in keyword argument context ------------------------------------- |