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
127c6441
Commit
127c6441
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Flushed commented-out PUTF macro.
Changed %PRIMITIVE PUTF to be %PUTF so that we can interpret SETF GETF.
parent
d5a8fd7a
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
+1
-25
1 addition, 25 deletions
code/macros.lisp
with
1 addition
and
25 deletions
code/macros.lisp
+
1
−
25
View file @
127c6441
...
@@ -846,30 +846,6 @@
...
@@ -846,30 +846,6 @@
(
define-modify-macro
decf
(
&optional
(
delta
1
))
-
(
define-modify-macro
decf
(
&optional
(
delta
1
))
-
"The first argument is some location holding a number. This number is
"The first argument is some location holding a number. This number is
decremented by the second argument, DELTA, which defaults to 1."
)
decremented by the second argument, DELTA, which defaults to 1."
)
#|
(defmacro putf (place indicator value &environment env)
"Place may be any place expression acceptable to SETF, and is expected
to hold a property list or (). This list is destructively altered so
that (GETF place indicator) will find the specified newvalue. Returns
the new value."
(multiple-value-bind (dummies vals newval setter getter)
(foo-get-setf-method place env)
(do* ((d dummies (cdr d))
(v vals (cdr v))
(let-list nil)
(ind-temp (gensym))
(val-temp (gensym)))
((null d)
(push (list (car newval) getter) let-list)
(push (list ind-temp indicator) let-list)
(push (list val-temp value) let-list)
`(let* ,(nreverse let-list)
(setq ,(car newval)
(%primitive putf ,(car newval) ,ind-temp ,val-temp))
,setter
,val-temp))
(push (list (car d) (car v)) let-list))))
|#
(
defmacro
remf
(
place
indicator
&environment
env
)
(
defmacro
remf
(
place
indicator
&environment
env
)
...
@@ -975,7 +951,7 @@
...
@@ -975,7 +951,7 @@
`
(
,@
values
,
get
,
prop
,@
(
if
default
`
(
,
default
)))
`
(
,@
values
,
get
,
prop
,@
(
if
default
`
(
,
default
)))
`
(
,
newval
)
`
(
,
newval
)
`
(
progn
(
setq
,
(
car
stores
)
`
(
progn
(
setq
,
(
car
stores
)
(
%
primitive
putf
,
(
car
stores
)
,
ptemp
,
newval
))
(
%putf
,
(
car
stores
)
,
ptemp
,
newval
))
,
set
,
set
,
newval
)
,
newval
)
`
(
getf
,
(
car
stores
)
,
ptemp
,@
(
if
default
`
(
,
def-temp
)))))))
`
(
getf
,
(
car
stores
)
,
ptemp
,@
(
if
default
`
(
,
def-temp
)))))))
...
...
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