aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-01-02 19:24:03 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-01-02 19:24:03 +0200
commitc44f0f83448b426935e9aeb07c5d761299144d14 (patch)
tree696d15a11587c94e3a5f8b356f3f91adc73c789a /src
parent1b0a4de9fa73dd2453cbd2902c2cd4d000f4abe7 (diff)
downloadwydawca-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')
-rw-r--r--src/meta.c5
-rw-r--r--src/triplet.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/meta.c b/src/meta.c
index fc88c6b..545ac36 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -80,2 +80,7 @@ meta_expand_string (const char *string, struct metadef *def, void *data,
+ case '-':
+ if (*++p)
+ p++;
+ break;
+
case '{':
diff --git a/src/triplet.c b/src/triplet.c
index f18f573..7f6ac68 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -401,3 +401,2 @@ expand_triplet_ls_full (struct metadef *def, void *data)
}
- def->value[size-1] = 0; /* Kill terminating newline */
free (buf[file_dist]);
@@ -432,3 +431,2 @@ expand_triplet_ls_upload (struct metadef *def, void *data)
}
- def->value[size-1] = 0; /* Kill terminating newline */

Return to:

Send suggestions and report system problems to the System administrator.