X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fread.lisp;h=59838d788fd744058a869aa7af0bf3a22bcd75c7;hb=be500b83eef452b448bfb9225e12846908ac8fc9;hp=e8ca5eb2b66d3bd24d61015dc0ce9d8b85dc606a;hpb=7143bafa06d1de63cb839fbe95d39913e5ed3445;p=jscl.git diff --git a/src/read.lisp b/src/read.lisp index e8ca5eb..59838d7 100644 --- a/src/read.lisp +++ b/src/read.lisp @@ -247,14 +247,14 @@ (ls-read stream eof-error-p eof-value t) (prog2 (ls-read stream) (ls-read stream eof-error-p eof-value t))))) - (#\J + ((#\J #\j) (unless (char= (%peek-char stream) #\:) (error "FFI descriptor must start with a semicolon.")) (let ((descriptor (subseq (read-until stream #'terminalp) 1)) (subdescriptors nil)) (do* ((start 0 (1+ end)) - (end (position #\: (subseq descriptor start)) - (position #\: (subseq descriptor start)))) + (end (position #\: descriptor :start start) + (position #\: descriptor :start start))) ((null end) (push (subseq descriptor start) subdescriptors) `(oget *root* ,@(reverse subdescriptors)))