X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fseq.lisp;h=429d674eb59f5dc6c5481bea798e7b57cd3cdbf2;hb=22b819c0cd0ca0ea5be52ba280b9e9e0b8e86210;hp=43bccfdfe12497a3bf8ff2155ed2b328dff4d611;hpb=b711554e4ce0dce883ba9e09a445c969aec0d305;p=sbcl.git diff --git a/src/code/seq.lisp b/src/code/seq.lisp index 43bccfd..429d674 100644 --- a/src/code/seq.lisp +++ b/src/code/seq.lisp @@ -203,8 +203,6 @@ ;; This seems silly, is there something better? '(integer 0 (0)))))) -(declaim (ftype (function (sequence index index) nil) - signal-bounding-indices-bad-error)) (defun signal-bounding-indices-bad-error (sequence start end) (let ((length (length sequence))) (error 'bounding-indices-bad-error @@ -581,7 +579,7 @@ (sb!xc:defmacro list-reverse-macro (sequence) `(do ((new-list ())) - ((atom ,sequence) new-list) + ((endp ,sequence) new-list) (push (pop ,sequence) new-list))) ) ; EVAL-WHEN @@ -617,7 +615,7 @@ (aref ,sequence right-index))))) (sb!xc:defmacro list-nreverse-macro (list) - `(do ((1st (cdr ,list) (if (atom 1st) 1st (cdr 1st))) + `(do ((1st (cdr ,list) (if (endp 1st) 1st (cdr 1st))) (2nd ,list 1st) (3rd '() 2nd)) ((atom 2nd) 3rd)