mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-07 13:16:36 +02:00
buffer pretty output to work in columnar
This commit is contained in:
parent
b9172a366c
commit
f29a404324
2 changed files with 18 additions and 12 deletions
|
@ -40,7 +40,7 @@
|
||||||
(return nothing))))
|
(return nothing))))
|
||||||
nothing))
|
nothing))
|
||||||
(define (generate)
|
(define (generate)
|
||||||
(if (and resume (list-queue-empty? queue))
|
(when (and resume (list-queue-empty? queue))
|
||||||
(call-with-current-continuation
|
(call-with-current-continuation
|
||||||
(lambda (cc)
|
(lambda (cc)
|
||||||
(set! return cc)
|
(set! return cc)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;; pretty.scm -- pretty printing format combinator
|
;; pretty.scm -- pretty printing format combinator
|
||||||
;; Copyright (c) 2006-2013 Alex Shinn. All rights reserved.
|
;; Copyright (c) 2006-2018 Alex Shinn. All rights reserved.
|
||||||
;; BSD-style license: http://synthcode.com/license.txt
|
;; BSD-style license: http://synthcode.com/license.txt
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
@ -348,15 +348,21 @@
|
||||||
|
|
||||||
(define (pretty obj)
|
(define (pretty obj)
|
||||||
(fn ()
|
(fn ()
|
||||||
|
(call-with-output
|
||||||
(each (pp obj (extract-shared-objects obj #t))
|
(each (pp obj (extract-shared-objects obj #t))
|
||||||
fl)))
|
fl)
|
||||||
|
displayed)))
|
||||||
|
|
||||||
(define (pretty-shared obj)
|
(define (pretty-shared obj)
|
||||||
(fn ()
|
(fn ()
|
||||||
|
(call-with-output
|
||||||
(each (pp obj (extract-shared-objects obj #f))
|
(each (pp obj (extract-shared-objects obj #f))
|
||||||
fl)))
|
fl)
|
||||||
|
displayed)))
|
||||||
|
|
||||||
(define (pretty-simply obj)
|
(define (pretty-simply obj)
|
||||||
(fn ()
|
(fn ()
|
||||||
|
(call-with-output
|
||||||
(each (pp obj (extract-shared-objects #f #f))
|
(each (pp obj (extract-shared-objects #f #f))
|
||||||
fl)))
|
fl)
|
||||||
|
displayed)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue