Skip to content

Commit

Permalink
1.0.15.28: SB-INTROSPECT: source-locations for objects
Browse files Browse the repository at this point in the history
 * FIND-DEFINITION-SOURCE returns the source-location of the class for
   standard-objects, conditions, and structure objects.

 * Patch by Tobias C. Rittweiler.
  • Loading branch information
nikodemus committed Mar 13, 2008
1 parent 91e1d65 commit ad640ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -4,6 +4,8 @@ changes in sbcl-1.0.16 relative to 1.0.15:
NIL whenever we can't get a truename, as was the case before 1.0.14.
* minor incompatible change: SB-BSD-SOCKETS:NAME-SERVICE-ERROR now
inherits from ERROR instead of just CONDITION.
* new feature: SB-INTROSPECT can provide source locations for instances
as well. (thanks to Tobian Ritterweiler)
* optimization: binding special variables now generates smaller code
on threaded platforms.
* optimization: MEMBER and ASSOC are over 50% faster for :TEST #'EQ
Expand Down
4 changes: 3 additions & 1 deletion contrib/sb-introspect/sb-introspect.lisp
Expand Up @@ -340,8 +340,10 @@ If an unsupported TYPE is requested, the function will return NIL.
(struct-predicate-structure-class object)))
(t
(find-function-definition-source object))))
((or condition standard-object structure-object)
(find-definition-source (class-of object)))
(t
(error "Don't know how to retrive source location for a ~S~%"
(error "Don't know how to retrieve source location for a ~S~%"
(type-of object)))))

(defun find-function-definition-source (function)
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"1.0.15.27"
"1.0.15.28"

0 comments on commit ad640ad

Please sign in to comment.