From: Ian Jackson Date: Sat, 10 Oct 2009 12:21:08 +0000 (+0100) Subject: routesearch: give tableau its own debug flag X-Git-Tag: 5.0^2~56 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=commitdiff_plain;h=447921b45575ec3c98cff70183fccb2f16326df4 routesearch: give tableau its own debug flag --- diff --git a/yarrg/rscommon.h b/yarrg/rscommon.h index b4e7803..5da0721 100644 --- a/yarrg/rscommon.h +++ b/yarrg/rscommon.h @@ -10,6 +10,7 @@ DF(search) \ DF(filter) \ DF(check) \ + DF(tableau) \ DF(lp) #define debug debug_file diff --git a/yarrg/rsmain.c b/yarrg/rsmain.c index 545ece0..17e98a3 100644 --- a/yarrg/rsmain.c +++ b/yarrg/rsmain.c @@ -12,6 +12,8 @@ int max_dist= -1; FILE *debug_file; FILE *output; +DEBUG_DEFINE_SOME_DEBUGF(tableau,tabdebugf); + #define CTR(x) int ctr_##x; COUNTER_LIST @@ -83,7 +85,7 @@ int main(int argc, const char **argv) { setup_value(); setup_search(); - fprintf(stderr,"setup complete, starting search\n"); + fprintf(output,"setup complete, starting search\n"); arg= *argv++; if (!strcmp(arg,"specific")) { @@ -120,30 +122,30 @@ int main(int argc, const char **argv) { int i, midarch, finarch; for (i=0; iabsolute)); - fprintf(stderr," "); - fprintf(stderr,"%4d",(int)(result->perleague)); + tabdebugf("|%5d",(int)(result->absolute)); + tabdebugf(" "); + tabdebugf("%4d",(int)(result->perleague)); } } - fprintf(stderr,"\n"); + tabdebugf("\n"); } }