X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcross-type.lisp;h=1aefd7f391619a30a527a767253f1f0bdfe10801;hb=0b96758f3645dff3e681d82cc97ddab1faae27ac;hp=75bb1aac3ab20d49470fb606ffa1c8a19dd8425b;hpb=f2775f0e5b50cfad198937e02ed90ee07682e125;p=sbcl.git diff --git a/src/code/cross-type.lisp b/src/code/cross-type.lisp index 75bb1aa..1aefd7f 100644 --- a/src/code/cross-type.lisp +++ b/src/code/cross-type.lisp @@ -86,7 +86,7 @@ '(array character list symbol)) raw-result) (t - (error "can't handle TYPE-OF ~S in cross-compilation"))))) + (error "can't handle TYPE-OF ~S in cross-compilation" object))))) ;;; Is SYMBOL in the CL package? Note that we're testing this on the ;;; cross-compilation host, which could do things any old way. In @@ -184,7 +184,7 @@ ;; we don't continue doing it after we someday patch ;; SBCL's type system so that * is no longer a type, we ;; make this assertion. -- WHN 2001-08-08 - (aver (typep (specifier-type '*) 'named-type)) + (aver (typep (values-specifier-type '*) 'named-type)) (values t t)) (;; Many simple types are guaranteed to correspond exactly ;; between any host ANSI Common Lisp and the target @@ -360,6 +360,11 @@ (make-member-type :members (list x))) (number (ctype-of-number x)) + (string + (make-array-type :dimensions (array-dimensions x) + :complexp (not (typep x 'simple-array)) + :element-type (specifier-type 'base-char) + :specialized-element-type (specifier-type 'base-char))) (array (let ((etype (specifier-type (array-element-type x)))) (make-array-type :dimensions (array-dimensions x) @@ -371,7 +376,7 @@ (cond ((typep x 'standard-char) ;; (Note that SBCL doesn't distinguish between BASE-CHAR and ;; CHARACTER.) - (find-classoid 'base-char)) + (specifier-type 'base-char)) ((not (characterp x)) nil) (t