X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcompiler%2Ffndb.lisp;h=113cb1da2dacf22615f597c7b2012692e7a954b5;hb=d76c81b0ca4dcfc99f0cd805f5c20493fa80b2b6;hp=daf551c506036f390377f433ec44a770701ca927;hpb=2d3cb6dba6461e98744eca2a1df4f770cea468ca;p=sbcl.git diff --git a/src/compiler/fndb.lisp b/src/compiler/fndb.lisp index daf551c..113cb1d 100644 --- a/src/compiler/fndb.lisp +++ b/src/compiler/fndb.lisp @@ -474,6 +474,11 @@ (defknown %map-to-nil-on-vector (callable vector) null (flushable call)) (defknown %map-to-nil-on-sequence (callable sequence) null (flushable call)) +(defknown map-into (sequence callable &rest sequence) + sequence + (call) + :derive-type #'result-type-first-arg) + ;;; returns the result from the predicate... (defknown some (callable sequence &rest sequence) t (foldable unsafely-flushable call)) @@ -676,7 +681,7 @@ (defknown tree-equal (t t &key (:test callable) (:test-not callable)) boolean (foldable flushable call)) -(defknown endp (t) boolean (foldable unsafely-flushable movable)) +(defknown endp (list) boolean (foldable flushable movable)) (defknown list-length (list) (or index null) (foldable unsafely-flushable)) (defknown nth (index list) t (foldable flushable)) (defknown nthcdr (index list) t (foldable unsafely-flushable)) @@ -1143,7 +1148,12 @@ :rename-and-delete :overwrite :append :supersede nil)) (:if-does-not-exist (member :error :create nil)) - (:external-format (member :default))) + (:external-format + ;; FIXME: This is logically (MEMBER :DEFAULT), + ;; but as a workaround for bug 244, we don't + ;; declare it (to keep the compiler from trusting + ;; the declaration unchecked). + t)) (or stream null)) (defknown rename-file (pathname-designator filename) @@ -1166,7 +1176,11 @@ (:verbose t) (:print t) (:if-does-not-exist (member :error :create nil)) - (:external-format (member :default))) + (:external-format + ;; FIXME: This is logically (MEMBER :DEFAULT), but as a workaround + ;; for bug 244, we don't declare it (to keep the compiler from + ;; trusting the declaration unchecked). + t)) t) (defknown directory (pathname-designator &key)