From: ian Date: Sun, 20 Mar 2005 18:56:26 +0000 (+0000) Subject: include distances X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=2fce17698467bd83bdd99898f431d5dce8bfa598;p=trains.git include distances --- diff --git a/layout/redactgraph.c b/layout/redactgraph.c index dcd5bd7..dfb08f8 100644 --- a/layout/redactgraph.c +++ b/layout/redactgraph.c @@ -1,6 +1,6 @@ /* * output format from printforforsafety is lines like this: - * segment . . [/] + * segment . . [/] * #... (comment) * (blank) * end (at end of file, mandatory) @@ -11,6 +11,7 @@ * is [...]* * where is alphabetic and is and * are in decimal and have no unnecessary leading 0's + * contains only digits and perhaps decimal point * semantic restrictions (not enforced by redactgraph but ought to * be impossible for layout designer to violate): * Each [/] appears exactly once. @@ -715,7 +716,7 @@ static void printforforsafety(void) { } output("*%d", edge->movpos); } - output("\n"); + output(" %f\n", edge->distance); } } output("end\n");