Skip to content

Commit

Permalink
Clozure CL refuse unread-char to stream that is eof state.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkazuo authored and Thomas de Grivel committed Sep 1, 2010
1 parent d772144 commit 387acf6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions uri-template.lisp
Expand Up @@ -208,16 +208,17 @@
token-accumulator)
(setf string-accumulator ()))))
(loop
for next-char = (read-char stream nil #\Space recursive-p)
until (member next-char '(#\Space \#Tab #\Newline #\)))
for next-char = (read-char stream nil nil recursive-p)
until (member next-char '(nil #\Space \#Tab #\Newline #\)))
do (case next-char
(#\{ (collect-string)
(push (read-expansion stream)
token-accumulator))
(#\})
(t (push next-char string-accumulator)))
finally
(unread-char next-char stream)
(if next-char
(unread-char next-char stream))
(collect-string))
(reverse token-accumulator))))

Expand Down

0 comments on commit 387acf6

Please sign in to comment.