]> asedeno.scripts.mit.edu Git - cl-protobufs.git/commitdiff
printer.lisp: don't export symbols not in our package
authorAlejandro R Sedeño <asedeno@google.com>
Mon, 11 Feb 2013 18:23:15 +0000 (13:23 -0500)
committerAlejandro R Sedeño <asedeno@google.com>
Mon, 11 Feb 2013 18:23:15 +0000 (13:23 -0500)
printer.lisp

index e547f647a7dcb756457bc683bd7b4e5418d7b205..be8f85d8cea641b40fa631ddc94a6cc5f2145975 100644 (file)
                           ~%(cl:in-package \"~A\")~
                           ~%(cl:export '(~{~A~^~%             ~}))~%~%"
                   pkg pkg (and *use-common-lisp-package* :common-lisp) pkg
-                  (collect-exports schema))))
+                  (remove-if-not
+                   #'(lambda (sym)
+                       (string=
+                        (package-name (symbol-package sym))
+                        pkg))
+                   (collect-exports schema)))))
       (when documentation
         (write-schema-documentation type documentation stream :indentation indentation))
       (format stream "~&(proto:define-schema ~(~A~)" (or class name))