mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-15 09:20:23 -07:00
cosmetic: deduplicate expand-deftype function definition
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
This commit is contained in:
parent
3f74981b54
commit
64a96a537b
2 changed files with 1 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue