Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
e3ce2d13
Commit
e3ce2d13
authored
22 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
MULTIPLE-VALUE-SETQ was mishandling variables that were symbol
macros. Use the version from SBCL.
parent
08f38af9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/macros.lisp
+4
-10
4 additions, 10 deletions
code/macros.lisp
with
4 additions
and
10 deletions
code/macros.lisp
+
4
−
10
View file @
e3ce2d13
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.8
0
2002/11/20
16:15:39
toy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.8
1
2002/11/20
20:01:25
toy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -496,15 +496,9 @@
...
@@ -496,15 +496,9 @@
;;; All the multiple-value receiving forms are defined in terms of
;;; All the multiple-value receiving forms are defined in terms of
;;; Multiple-Value-Call.
;;; Multiple-Value-Call.
;;;
;;;
(
defmacro
multiple-value-setq
(
varlist
value-form
)
(
defmacro
multiple-value-setq
(
vars
value-form
)
(
unless
(
and
(
listp
varlist
)
(
every
#'
symbolp
varlist
))
`
(
values
(
setf
(
values
,@
vars
)
,
value-form
)))
(
error
"Varlist is not a list of symbols: ~S."
varlist
))
(
let
((
temps
(
mapcar
#'
(
lambda
(
x
)
(
declare
(
ignore
x
))
(
gensym
))
varlist
)))
`
(
multiple-value-bind
,
temps
,
value-form
,@
(
mapcar
#'
(
lambda
(
var
temp
)
`
(
setq
,
var
,
temp
))
varlist
temps
)
,
(
car
temps
))))
;;;
;;;
(
defmacro
multiple-value-bind
(
varlist
value-form
&body
body
)
(
defmacro
multiple-value-bind
(
varlist
value-form
&body
body
)
(
unless
(
and
(
listp
varlist
)
(
every
#'
symbolp
varlist
))
(
unless
(
and
(
listp
varlist
)
(
every
#'
symbolp
varlist
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment