diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-06 13:18:36 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-06 13:18:36 +0200 |
commit | e1afd42340c0b2c22660744e0f88258a44617e88 (patch) | |
tree | f4c3b398e79e03aaea0e47ef7378700022befc27 | |
parent | a1d560a878d1dfe4ed751cb3f99b1ee67755f489 (diff) | |
download | wydawca-e1afd42340c0b2c22660744e0f88258a44617e88.tar.gz wydawca-e1afd42340c0b2c22660744e0f88258a44617e88.tar.bz2 |
Comment expansion.
* src/triplet.c: New keyword "comment".
-rw-r--r-- | src/triplet.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/triplet.c b/src/triplet.c index 048cdcb..1b0fb18 100644 --- a/src/triplet.c +++ b/src/triplet.c @@ -502,2 +502,11 @@ 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), |