cosmetic: deduplicate expand-deftype function definition

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
This commit is contained in:
Daniel Kochmański 2015-08-18 12:07:57 +02:00
parent 3f74981b54
commit 64a96a537b
2 changed files with 1 additions and 11 deletions

View file

@ -339,7 +339,7 @@ compute it. This version only handles the simplest cases."
'character)
((eq array 'base-string)
'base-char)
((member (setf array (expand-deftype array))
((member (setf array (si::expand-deftype array))
'(array vector simple-array))
t)
((atom array)

View file

@ -42,16 +42,6 @@
(c1constant-value new-value :only-small-values t)
(c1nil))))
(defun expand-deftype (type)
(let (base args)
(if (atom type)
(setf base type args nil)
(setf base (car type) args (cdr type)))
(let ((fn (get-sysprop base 'SI::DEFTYPE-DEFINITION)))
(if fn
(expand-deftype (apply fn args))
type))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; TYPE CHECKING