Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66456 - trunk/tools/build/v2/engine/src/modules
From: admin_at_[hidden]
Date: 2010-11-08 12:05:56


Author: wash
Date: 2010-11-08 12:05:55 EST (Mon, 08 Nov 2010)
New Revision: 66456
URL: http://svn.boost.org/trac/boost/changeset/66456

Log:
Added comment suggested by volodya.

Text files modified:
   trunk/tools/build/v2/engine/src/modules/order.c | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/engine/src/modules/order.c
==============================================================================
--- trunk/tools/build/v2/engine/src/modules/order.c (original)
+++ trunk/tools/build/v2/engine/src/modules/order.c 2010-11-08 12:05:55 EST (Mon, 08 Nov 2010)
@@ -50,8 +50,10 @@
 
         if (colors[adjacent_vertex] == white)
             do_ts(graph, adjacent_vertex, colors, result_ptr);
- //else if (colors[adjacent_vertex] == gray)
- //; /* This is loop. Not sure what to do... */
+ /* The vertex is either black, in which case we don't have to do
+ anything, a gray, in which case we have a loop. If we have a loop,
+ it's not clear what useful diagnostic we can emit, so we emit
+ nothing. */
     }
     colors[current_vertex] = black;
     **result_ptr = current_vertex;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk