mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 06:09:18 +02:00
implementing symbol->string in C to avoid outputting the escape syntax
This commit is contained in:
parent
a5fbdccbfc
commit
61a65ae219
1 changed files with 0 additions and 3 deletions
|
@ -400,9 +400,6 @@
|
||||||
"0"
|
"0"
|
||||||
(list->string (if (negative? num) (cons #\- res) res)))))))
|
(list->string (if (negative? num) (cons #\- res) res)))))))
|
||||||
|
|
||||||
(define (symbol->string sym)
|
|
||||||
(call-with-output-string (lambda (out) (write sym out))))
|
|
||||||
|
|
||||||
(define (list->string ls)
|
(define (list->string ls)
|
||||||
(call-with-output-string
|
(call-with-output-string
|
||||||
(lambda (out) (for-each (lambda (ch) (write-char ch out)) ls))))
|
(lambda (out) (for-each (lambda (ch) (write-char ch out)) ls))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue