X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpackage.lisp;h=9e9dd3e9053b969ba531b3f05ab07c10b03d7b26;hb=HEAD;hp=dd9ca3ea777d384b94c92b1e6f319303340f1355;hpb=08d05510b51708853ca998154d8096b21d85edab;p=sbcl.git diff --git a/src/code/package.lisp b/src/code/package.lisp index dd9ca3e..9e9dd3e 100644 --- a/src/code/package.lisp +++ b/src/code/package.lisp @@ -106,7 +106,10 @@ #!+sb-package-locks (%implementation-packages nil :type list) ;; Definition source location - (source-location nil :type (or null sb!c:definition-source-location))) + (source-location nil :type (or null sb!c:definition-source-location)) + ;; Local package nicknames. + (%local-nicknames nil :type list) + (%locally-nicknamed-by nil :type list)) ;;;; iteration macros @@ -369,3 +372,8 @@ of :INHERITED :EXTERNAL :INTERNAL." (t (,',init-macro :inherited) (setf ,',counter nil))))))))))))) ,@body)))))))) + +(defmacro-mundanely with-package-graph ((&key) &body forms) + `(flet ((thunk () ,@forms)) + (declare (dynamic-extent #'thunk)) + (call-with-package-graph #'thunk)))