Skip to content
Snippets Groups Projects
Commit 0d9d895d authored by David Thompson's avatar David Thompson
Browse files

Fix display-phrase.

parent f598aa48
No related branches found
No related tags found
No related merge requests found
......@@ -223,18 +223,21 @@
(addchstr* win (color %YELLOW-N name)))
(define (display-phrase win phrase)
(do ((phrase phrase (cdr phrase)))
((null? phrase))
(match (car phrase)
((? string? str)
(addstr win str))
((? number? num)
(addstr win (number->string num)))
((? self-proposed-name? spn)
(display-self-proposed-name win spn))
((? petname? pn)
(display-petname win pn))
(other (addstr win (format #f "~s" other))))))
(match phrase
((? string? str)
(addstr win str))
((? number? num)
(addstr win (number->string num)))
((? self-proposed-name? spn)
(display-self-proposed-name win spn))
((? petname? pn)
(display-petname win pn))
((phrases ...)
(for-each (lambda (phrase*)
(display-phrase win phrase*))
phrases))
(other
(addstr win (format #f "~s" other)))))
;; Log helpers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment