X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdeftypes-for-target.lisp;h=6c9ae1030da065a8bbfdd25b69e313141559a49e;hb=ea652c139bb060d821f3010b3b106bdbcec983aa;hp=9efcd3677ecb7edfb9c29d6ee5417d290aa194c7;hpb=397b000303e15df61661d9726126ee99ee10d9c6;p=sbcl.git diff --git a/src/code/deftypes-for-target.lisp b/src/code/deftypes-for-target.lisp index 9efcd36..6c9ae10 100644 --- a/src/code/deftypes-for-target.lisp +++ b/src/code/deftypes-for-target.lisp @@ -122,16 +122,10 @@ ;;; 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)) -;;; like INDEX, but augmented with -1 (useful when using the index -;;; to count downwards to 0, e.g. LOOP FOR I FROM N DOWNTO 0, with -;;; an implementation which terminates the loop by testing for the -;;; index leaving the loop range) -(sb!xc:deftype index-or-minus-1 () `(integer -1 ,(1- most-positive-fixnum))) - ;;; a thing returned by the irrational functions. We assume that they ;;; never compute a rational result. (sb!xc:deftype irrational () @@ -146,6 +140,10 @@ ;;; 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)) + ;;; a valid argument to a stream function ;;; ;;; FIXME: should probably be STREAM-DESIGNATOR, after the term