make pretty-print graph numbering consistent

svn: r1417
This commit is contained in:
Matthew Flatt 2005-11-27 13:19:31 +00:00
parent 39a37d1fb2
commit 0095637dd7

View File

@ -729,7 +729,8 @@
(and (hash-table? obj) print-hash-table?)))]
[graph-ref (if can-multi
(and found (hash-table-get found obj (lambda () #f)))
#f)])
#f)]
[old-counter cycle-counter])
(if (and can-multi
(or (not graph-ref)
(not (unbox (mark-def graph-ref)))))
@ -753,6 +754,7 @@
;; Doesn't fit on one line, so start over
(begin
(tentative-pretty-print-port-cancel a-pport)
(set! cycle-counter old-counter)
(when graph-ref
(expr-found pport graph-ref))
(pre-print pport obj)