Mercurial > hg > xemacs-beta
diff lisp/cl/cl-macs.el @ 183:e121b013d1f0 r20-3b18
Import from CVS: tag r20-3b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:54:23 +0200 |
parents | 929b76928fce |
children | 3d6bfa290dbd |
line wrap: on
line diff
--- a/lisp/cl/cl-macs.el Mon Aug 13 09:53:23 2007 +0200 +++ b/lisp/cl/cl-macs.el Mon Aug 13 09:54:23 2007 +0200 @@ -2328,11 +2328,11 @@ name 'cl-deftype-handler (cons (list* '&cl-defs ''('*) args) body)))) (defun cl-make-type-test (val type) - (if (memq type '(character string-char)) (setq type '(integer 0 255))) (if (symbolp type) (cond ((get type 'cl-deftype-handler) (cl-make-type-test val (funcall (get type 'cl-deftype-handler)))) ((memq type '(nil t)) type) + ((eq type 'string-char) (list 'characterp val)) ((eq type 'null) (list 'null val)) ((eq type 'float) (list 'floatp-safe val)) ((eq type 'real) (list 'numberp val))