diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-01-02 19:24:03 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-01-02 19:24:03 +0200 |
commit | c44f0f83448b426935e9aeb07c5d761299144d14 (patch) | |
tree | 696d15a11587c94e3a5f8b356f3f91adc73c789a /src/meta.c | |
parent | 1b0a4de9fa73dd2453cbd2902c2cd4d000f4abe7 (diff) | |
download | wydawca-c44f0f83448b426935e9aeb07c5d761299144d14.tar.gz wydawca-c44f0f83448b426935e9aeb07c5d761299144d14.tar.bz2 |
$- construct (similar to m4's dnl).
* src/meta.c: Special construct $- removes the character immediately
following it.
* doc/wydawca.texi: Document the use of $- construct.
* src/triplet.c (expand_triplet_ls_full)
(expand_triplet_ls_upload): Keep trailing newline in the expansion.
* tests/etc/notify.rc: Update.
Diffstat (limited to 'src/meta.c')
-rw-r--r-- | src/meta.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -78,6 +78,11 @@ meta_expand_string (const char *string, struct metadef *def, void *data, p++; break; + case '-': + if (*++p) + p++; + break; + case '{': e = strchr (p + 1, '}'); if (e && (s = find_expansion_word (p + 1, e - p - 1, def, data))) |