projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.14.13: Step SBCL, step!
[sbcl.git]
/
contrib
/
sb-aclrepl
/
inspect.lisp
diff --git
a/contrib/sb-aclrepl/inspect.lisp
b/contrib/sb-aclrepl/inspect.lisp
index
c7b7449
..
f807776
100644
(file)
--- a/
contrib/sb-aclrepl/inspect.lisp
+++ b/
contrib/sb-aclrepl/inspect.lisp
@@
-12,7
+12,8
@@
(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +default-inspect-length+ 20))
(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +default-inspect-length+ 20))
-(defstruct inspect
+(defstruct (%inspect (:constructor make-inspect)
+ (:conc-name inspect-))
;; stack of parents of inspected object
object-stack
;; a stack of indices of parent object components
;; stack of parents of inspected object
object-stack
;; a stack of indices of parent object components
@@
-58,12
+59,10
@@
The commands are:
(defun inspector-fun (object input-stream output-stream)
(defun inspector-fun (object input-stream output-stream)
- (declare (ignore input-stream))
(let ((*current-inspect* nil)
(*inspect-raw* nil)
(*inspect-length* *inspect-length*)
(*skip-address-display* nil))
(let ((*current-inspect* nil)
(*inspect-raw* nil)
(*inspect-length* *inspect-length*)
(*skip-address-display* nil))
- (setq object (eval object))
(setq *current-inspect* (make-inspect))
(reset-stack object "(inspect ...)")
(redisplay output-stream)
(setq *current-inspect* (make-inspect))
(reset-stack object "(inspect ...)")
(redisplay output-stream)
@@
-783,7
+782,11
@@
cons cells and LIST-TYPE is :normal, :dotted, or :cyclic"
(list components (length components) :named nil)))
(defmethod inspected-parts ((object sb-kernel:funcallable-instance))
(list components (length components) :named nil)))
(defmethod inspected-parts ((object sb-kernel:funcallable-instance))
- (let ((components (inspected-structure-parts object)))
+ (let ((components (inspected-standard-object-parts object)))
+ (list components (length components) :named nil)))
+
+(defmethod inspected-parts ((object condition))
+ (let ((components (inspected-standard-object-parts object)))
(list components (length components) :named nil)))
(defmethod inspected-parts ((object function))
(list components (length components) :named nil)))
(defmethod inspected-parts ((object function))