#define RCI_NOTHING(x) /* nothing */
#define RCI_TRIPLE_FMT(x) " " #x "=" RCI_TRIPLE_FMT_BASE
-#define RCI_TRIPLE_VALS(x) , RCI_TRIPLE_VALS_BASE(ipf->counts, [RC_##x])
+#define RCI_TRIPLE_VALS(x) , RCI_TRIPLE_VALS_BASE(ipf->counts.counts, [RC_##x])
-#define CNT(art,rc) (ipf->counts[art_##art][RC_##rc])
+#define CNT(art,rc) (ipf->counts.counts[art_##art][RC_##rc])
char *inprog= completed
? xasprintf("%s","") /* GCC produces a stupid warning for printf("") ! */
RESULT_COUNTS(RCI_NOTHING, RCI_TRIPLE_FMT)
,
completed?"completed":"processed", what, spec,
- ipf->readcount_ok, ipf->readcount_blank, ipf->readcount_err,
- inprog, autodefer, ipf->count_nooffer_missing,
+ ipf->counts.read_ok, ipf->counts.read_blank, ipf->counts.read_err,
+ inprog, autodefer, ipf->counts.nooffer_missing,
CNT(Unchecked,sent) + CNT(Unsolicited,sent)
, CNT(Unchecked,sent), CNT(Unsolicited,sent),
CNT(Wanted,accepted) + CNT(Unsolicited,accepted)
RESULT_COUNTS(RCI_NOTHING, RCI_TRIPLE_VALS)
);
- memset(ipf->counts, 0, sizeof(ipf->counts));
- ipf->readcount_ok= ipf->readcount_blank=
- ipf->readcount_err= ipf->count_nooffer_missing= 0;
+ memset(&ipf->counts, 0, sizeof(ipf->counts));
free(inprog);
free(autodefer);