X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdeftypes-for-target.lisp;h=ddfe5fbdaec99f3b64cc3ddac0d5cd78cc231c3c;hb=6c4d4d984b1af6b2a73568cec3ab9c8795cff2da;hp=920c090a4d3ede486a98d86645e4f5892b086ebf;hpb=334af30b26555f0bf706f7157b399bdbd4fad548;p=sbcl.git diff --git a/src/code/deftypes-for-target.lisp b/src/code/deftypes-for-target.lisp index 920c090..ddfe5fb 100644 --- a/src/code/deftypes-for-target.lisp +++ b/src/code/deftypes-for-target.lisp @@ -98,7 +98,8 @@ (sb!xc:deftype simple-bit-vector (&optional size) `(simple-array bit (,size))) -;;;; some private types that we use in defining the standard functions +;;;; some private types that we use in defining the standard functions, +;;;; or implementing declarations in standard compiler transforms ;;; a type specifier (sb!xc:deftype type-specifier () '(or list symbol sb!xc:class)) @@ -110,7 +111,7 @@ ;;; something legal in an evaluated context ;;; FIXME: could probably go away -(sb!xc:deftype form () 't) +(sb!xc:deftype form () t) ;;; Maclisp compatibility... ;;; FIXME: should be STRING-DESIGNATOR (the term used in the ANSI spec) @@ -121,7 +122,7 @@ ;;; legal args to pathname functions (sb!xc:deftype pathname-designator () - '(or string pathname stream)) + '(or string pathname #+sb-xc-host stream #-sb-xc-host file-stream)) (sb!xc:deftype logical-host-designator () '(or host string)) @@ -139,6 +140,11 @@ ;;; the :END arg to a sequence (sb!xc:deftype sequence-end () '(or null index)) +;;; the :COUNT arg to a sequence +(sb!xc:deftype sequence-count () + `(or null (integer ,(- sb!xc:array-dimension-limit) + (,sb!xc:array-dimension-limit)))) + ;;; a valid argument to a stream function ;;; ;;; FIXME: should probably be STREAM-DESIGNATOR, after the term