aboutsummaryrefslogtreecommitdiff
path: root/src/triplet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/triplet.c')
-rw-r--r--src/triplet.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/triplet.c b/src/triplet.c
index 048cdcb..1b0fb18 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -501,3 +501,12 @@ expand_report (struct metadef *def, void *data)
}
-
+
+static const char *
+expand_comment (struct metadef *def, void *data)
+{
+ struct file_triplet *trp = data;
+ if (directive_get_value (trp, "comment", (const char**) &def->value))
+ def->value = "";
+ return def->value;
+}
+
#define DECL_EXPAND_TIMER(what) \
@@ -533,2 +542,3 @@ struct metadef triplet_default_meta[] = {
{ "source-dir", NULL, expand_source_dir, NULL },
+ { "comment", NULL, expand_comment, NULL },
{ NULL }
@@ -563,2 +573,3 @@ struct metadef triplet_meta[] = {
{ "report", NULL, expand_report, NULL },
+ { "comment", NULL, expand_comment, NULL },
DECL_FULL_TIMER(wydawca),

Return to:

Send suggestions and report system problems to the System administrator.