Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jan Moringen
asdf
Commits
8a80cbc5
Commit
8a80cbc5
authored
Feb 19, 2018
by
Robert Goldman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'define-package' into 'master'
Define package fixes See merge request
asdf/asdf!92
parents
2a5bc3be
21e3a85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
uiop/package.lisp
uiop/package.lisp
+9
-9
No files found.
uiop/package.lisp
View file @
8a80cbc5
...
...
@@ -700,13 +700,13 @@ or when loading the package is optional."
:and
:do
(
setf
use-p
t
)
:else
:when
(
eq
kw
:unintern
)
:append
args
:into
unintern
:else
:do
(
error
"unrecognized define-package keyword ~S"
kw
)
:finally
(
return
`
(
,
package
:nicknames
,
nicknames
:documentation
,
documentation
:use
,
(
if
use-p
use
'
(
:common-lisp
))
:shadow
,
shadow
:shadowing-import-from
,
shadowing-import-from
:import-from
,
import-from
:export
,
export
:intern
,
intern
:recycle
,
(
if
recycle-p
recycle
(
cons
package
nicknames
))
:mix
,
mix
:reexport
,
reexport
:unintern
,
unintern
)))))
:finally
(
return
`
(
'
,package
:nicknames
',nicknames
:documentation
'
,documentation
:use
'
,
(
if
use-p
use
'
(
:common-lisp
))
:shadow
',shadow
:shadowing-import-from
'
,shadowing-import-from
:import-from
',import-from
:export
',export
:intern
'
,intern
:recycle
'
,
(
if
recycle-p
recycle
(
cons
package
nicknames
))
:mix
',mix
:reexport
',reexport
:unintern
'
,unintern
)))))
(
defmacro
define-package
(
package
&rest
clauses
)
"DEFINE-PACKAGE takes a PACKAGE and a number of CLAUSES, of the form
...
...
@@ -733,9 +733,9 @@ of shadowing, etc. the symbols with the same name may not be the same symbols.
UNINTERN -- Remove symbols here from PACKAGE."
(
let
((
ensure-form
`
(
prog1
(
apply
'ensure-package
',
(
parse-define-package-form
package
clauses
))
(
funcall
'ensure-package
,@
(
parse-define-package-form
package
clauses
))
#+
sbcl
(
setf
(
sb-impl::package-source-location
(
find-package
',package
))
,
(
sb-c:source-location
)))))
(
sb-c:source-location
)))))
`
(
progn
#+
(
or
clasp
ecl
gcl
mkcl
)
(
defpackage
,
package
(
:use
))
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment