(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)))