1.0.22.9: SB-INTROSPECT regression from 1.0.22.8
authorNikodemus Siivola <nikodemus@random-state.net>
Mon, 3 Nov 2008 14:19:33 +0000 (14:19 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 3 Nov 2008 14:19:33 +0000 (14:19 +0000)
 * Don't signal an error if no TYPE exists when FIND-DEFINITION-SOURCES-BY-NAME
   is called with :TYPE as the second argument.

contrib/sb-introspect/sb-introspect.lisp
contrib/sb-introspect/test-driver.lisp
version.lisp-expr

index 9b21d61..b163ba6 100644 (file)
@@ -192,7 +192,8 @@ If an unsupported TYPE is requested, the function will return NIL.
           (if loc
               (translate-source-location loc)
               (let ((expander-fun (sb-int:info :type :expander name)))
-                (find-definition-source expander-fun)))))
+                (when expander-fun
+                  (find-definition-source expander-fun))))))
        ((:method)
         (when (fboundp name)
           (let ((fun (real-fdefinition name)))
index e5d7cd1..9ae4e63 100644 (file)
   'kroolz)
 (assert (equal (function-arglist #'kroolz) '(r1 r2 &optional opt)))
 
+;;;; Test finding a type that isn't one
+(assert (not (find-definition-sources-by-name 'fboundp :type)))
 
 ;;;; Test the xref facility
 
index c6a1483..795d615 100644 (file)
@@ -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.22.8"
+"1.0.22.9"