aboutsummaryrefslogtreecommitdiff
path: root/src/directive.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-04-15 09:21:10 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-04-15 09:21:10 +0300
commit33b081ce1754ea931971997b03eb085f5fa126de (patch)
tree6c97cdde72d1a8e52f1d6cfd7d008158e21086a2 /src/directive.c
parent6398c8db62d953b80fa83093a2e05f41b782f662 (diff)
downloadwydawca-33b081ce1754ea931971997b03eb085f5fa126de.tar.gz
wydawca-33b081ce1754ea931971997b03eb085f5fa126de.tar.bz2
Replace UPDATE_STATS macro with inline function increase_stat_counter
Diffstat (limited to 'src/directive.c')
-rw-r--r--src/directive.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/directive.c b/src/directive.c
index abe7fcd..48c93ae 100644
--- a/src/directive.c
+++ b/src/directive.c
@@ -558,7 +558,7 @@ external_check(struct wy_triplet *trp)
free(file);
if (rc) {
- UPDATE_STATS(WY_STAT_CHECK_FAIL);
+ increase_stat_counter(WY_STAT_CHECK_FAIL);
notify(spool->notification, trp, wy_ev_check_fail);
}
@@ -596,7 +596,7 @@ process_directives(struct wy_triplet *trp)
const char *key, *val;
struct spool *spool = trp->spool;
- UPDATE_STATS(WY_STAT_COMPLETE_TRIPLETS);
+ increase_stat_counter(WY_STAT_COMPLETE_TRIPLETS);
timer_start("triplet");
report_init();
for (n = directive_first(trp, &key, &val); n;
@@ -667,7 +667,7 @@ process_directives(struct wy_triplet *trp)
trp->file[file_directive].name, strerror(errno));
}
- UPDATE_STATS(WY_STAT_TRIPLET_SUCCESS);
+ increase_stat_counter(WY_STAT_TRIPLET_SUCCESS);
report_finish();
timer_stop("triplet");
notify(spool->notification, trp, wy_ev_success);

Return to:

Send suggestions and report system problems to the System administrator.