common-lisp.net
/
projects/qitab/cl-protobufs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7655cda
)
printer.lisp: don't export symbols not in our package
author
Alejandro R Sedeño
<asedeno@google.com>
Mon, 11 Feb 2013 18:23:15 +0000 (13:23 -0500)
committer
Alejandro R Sedeño
<asedeno@google.com>
Mon, 11 Feb 2013 18:23:15 +0000 (13:23 -0500)
printer.lisp
patch
|
blob
|
blame
|
history
diff --git
a/printer.lisp
b/printer.lisp
index
e547f64
..
be8f85d
100644
(file)
--- a/
printer.lisp
+++ b/
printer.lisp
@@
-462,7
+462,12
@@
~%(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))