X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=statemc.c;fp=statemc.c;h=172bbe8afabf040ac91a9b114267b6b4a920e278;hb=62a5c8052810dc6e5716c1e1e3bf63294a350167;hp=8b588039b9e4f45e427f93a4e1da8a85dec9dda0;hpb=f040b1fe921a666514b59f0374817832e11bca2d;p=innduct.git diff --git a/statemc.c b/statemc.c index 8b58803..172bbe8 100644 --- a/statemc.c +++ b/statemc.c @@ -222,9 +222,9 @@ static void notice_processed(InputFile *ipf, int completed, #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.counts, [RC_##x]) +#define RCI_TRIPLE_VALS(x) ,RCI_TRIPLE_VALS_BASE(ipf->counts.results, [RC_##x]) -#define CNT(art,rc) (ipf->counts.counts[art_##art][RC_##rc]) +#define CNT(art,rc) (ipf->counts.results[art_##art][RC_##rc]) char *inprog= completed ? xasprintf("%s","") /* GCC produces a stupid warning for printf("") ! */ @@ -238,8 +238,9 @@ static void notice_processed(InputFile *ipf, int completed, RESULT_COUNTS(RCI_NOTHING, RCI_TRIPLE_FMT) , completed?"completed":"processed", what, spec, - ipf->counts.read_ok, ipf->counts.read_blank, ipf->counts.read_err, - inprog, autodefer, ipf->counts.nooffer_missing, + ipf->counts.events[read_ok], ipf->counts.events[read_blank], + ipf->counts.events[read_err], + inprog, autodefer, ipf->counts.events[nooffer_missing], CNT(Unchecked,sent) + CNT(Unsolicited,sent) , CNT(Unchecked,sent), CNT(Unsolicited,sent), CNT(Wanted,accepted) + CNT(Unsolicited,accepted)