X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Ffndb.lisp;h=f6d9f54a9ab873f750b21ea4f078baecc9d66359;hb=422b88abf96f4842a3d0999cd3b80d96f5a153d6;hp=8a148a1603785937a5d4813380aa522647779dd2;hpb=9a241987c408980164f71237f7d840265302bbc1;p=sbcl.git diff --git a/src/compiler/fndb.lisp b/src/compiler/fndb.lisp index 8a148a1..f6d9f54 100644 --- a/src/compiler/fndb.lisp +++ b/src/compiler/fndb.lisp @@ -38,9 +38,9 @@ :derive-type (result-type-specifier-nth-arg 2)) (defknown list-to-simple-string* (list) simple-string) (defknown list-to-bit-vector* (list) bit-vector) -(defknown list-to-vector* (list type) vector) +(defknown list-to-vector* (list type-specifier) vector) (defknown list-to-simple-vector* (list) simple-vector) -(defknown vector-to-vector* (vector type) vector) +(defknown vector-to-vector* (vector type-specifier) vector) (defknown vector-to-simple-string* (vector) vector) (defknown type-of (t) t (foldable flushable)) @@ -178,7 +178,6 @@ (sb!xc:deftype package-designator () '(or stringable sb!xc:package)) (sb!xc:deftype symbols () '(or list symbol)) -;;; Should allow a package name, I think, tho CLtL II doesn't say so... (defknown gentemp (&optional string package-designator) symbol) (defknown make-package (stringable &key @@ -756,7 +755,7 @@ (foldable flushable)) (defknown hash-table-size (hash-table) index (flushable)) (defknown hash-table-test (hash-table) symbol (foldable flushable)) -(defknown sxhash (t) (integer 0 #.sb!vm:*target-most-positive-fixnum*) +(defknown sxhash (t) (integer 0 #.sb!xc:most-positive-fixnum) (foldable flushable)) ;;;; from the "Arrays" chapter @@ -922,8 +921,8 @@ (character character callable &optional readtable) function (unsafe)) (defknown get-dispatch-macro-character - (character character &optional (or readtable null)) callable - (flushable)) + (character character &optional (or readtable null)) (or callable null) + ()) ;;; may return any type due to eof-value... (defknown (read read-preserving-whitespace read-char-no-hang read-char) @@ -1145,10 +1144,13 @@ ;;;; from the "Errors" chapter: -(defknown error (t &rest t) nil) ; never returns... +(defknown error (t &rest t) nil) ; never returns (defknown cerror (string t &rest t) null) (defknown warn (t &rest t) null) (defknown break (&optional t &rest t) null) + +;;; and analogous SBCL extension: +(defknown bug (t &rest t) nil) ; never returns ;;;; from the "Miscellaneous" Chapter: