# HG changeset patch # User jbe # Date 1381597131 -7200 # Node ID 29835e2525bd2247f12fcde534b7893a62541e54 # Parent ee922d2869927820154a60461cc0c356143a9f97 Improved comments/debug output in lf_update_issue_order.c diff -r ee922d286992 -r 29835e2525bd lf_update_issue_order.c --- a/lf_update_issue_order.c Sat Oct 12 15:48:57 2013 +0200 +++ b/lf_update_issue_order.c Sat Oct 12 18:58:51 2013 +0200 @@ -81,11 +81,11 @@ return candidate; } -// ballot of the proportional runoff system: +// ballot of the proportional runoff system, containing only one preference section: struct ballot { int weight; // if weight is greater than 1, then the ballot is counted multiple times - int count; - struct candidate **candidates; + int count; // number of candidates + struct candidate **candidates; // all candidates equally preferred }; // open issue to be assigned an "order_in_open_states": @@ -371,7 +371,7 @@ // trivial case, when there are no tuples: if (!tuple_count) { // write results to database: - if (logging) printf("No supporters for any issue. Deleting ranks in database.\n"); + if (logging) printf("No supporters for any issue. Writing ranks to database.\n"); err = write_ranks(db, escaped_area_id); if (logging) printf("Done.\n"); return 0;