summaryrefslogtreecommitdiff
path: root/tests/tsort/basic-1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-25 12:03:15 +0000
committerJim Meyering <jim@meyering.net>2000-01-25 12:03:15 +0000
commita8b0898ba5e7c9ed414472030c726813d216d216 (patch)
tree0a569c8c2f5648cb4646d9e5b801f64cfadb5834 /tests/tsort/basic-1
parent9a2ff5e31cd5156a0ee4946940f4181f8786ed4c (diff)
downloadcoreutils-a8b0898ba5e7c9ed414472030c726813d216d216.tar.xz
tsort now works more like the traditional UNIX tsort. Before it would
exit when it found a loop. Now it continues and outputs all items. (exit_status): New variable. (loop): New varibale. (count_items, scan_zeroes): Change return type to int. (detect_loop): Complete rewrite to correctly implement detection of loops. Also change return type to int. (recurse_tree): Stop if ACTION returns non-zero. This involves changing the return type of this function and ACTION to int. (walk_tree): Change return type of ACTION to int. (tsort): Continue sort after a loop has been detected (and broken). Set exit_status to 1 if a loop was detected. (main): Use exit_status to determine exit code.
Diffstat (limited to 'tests/tsort/basic-1')
0 files changed, 0 insertions, 0 deletions