X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fboot.lisp;h=856879fa8b5b4ee6fa8e36715c321adb0fd87d2f;hb=71497337d7fc99cf8eefe239e662f86c67519d57;hp=3541b23a863e800e602dc220d4542eb2eba185b3;hpb=5b3421abce6203fd73ac298f1fbba783abaeab5f;p=jscl.git diff --git a/src/boot.lisp b/src/boot.lisp index 3541b23..856879f 100644 --- a/src/boot.lisp +++ b/src/boot.lisp @@ -419,17 +419,6 @@ (write-line (lambda-code (fdefinition function))) nil) -(defun documentation (x type) - "Return the documentation of X. TYPE must be the symbol VARIABLE or FUNCTION." - (ecase type - (function - (let ((func (fdefinition x))) - (oget func "docstring"))) - (variable - (unless (symbolp x) - (error "The type of documentation `~S' is not a symbol." type)) - (oget x "vardoc")))) - (defmacro multiple-value-bind (variables value-from &body body) `(multiple-value-call (lambda (&optional ,@variables &rest ,(gensym)) ,@body) @@ -501,6 +490,8 @@ `((,(ecase (car c) (integer 'integerp) (cons 'consp) + (list 'listp) + (sequence 'sequencep) (symbol 'symbolp) (function 'functionp) (float 'floatp) @@ -518,7 +509,7 @@ `(let ((,g!x ,x)) (typecase ,g!x ,@clausules - (t (error "~X fell through etypecase expression." ,g!x)))))) + (t (error "~S fell through etypecase expression." ,g!x)))))) (defun notany (fn seq) (not (some fn seq)))