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
f5593c7c
Commit
f5593c7c
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed environment stuff to use the correct environment format.
parent
2849e8e7
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
pcl/walk.lisp
+10
-9
10 additions, 9 deletions
pcl/walk.lisp
with
10 additions
and
9 deletions
pcl/walk.lisp
+
10
−
9
View file @
f5593c7c
...
...
@@ -810,8 +810,8 @@
;;; In CMU Common Lisp, the environment (well, the function/macro part of
;;; the environment) is represented as a list of entries, with each entry
;;; being of the form (name
type . fn)
where t
ype
is either
macro or
;;;
function
.
;;; being of the form (name
. thing),
where t
hing
is either
;;;
(macro . <interpreted-function) or a C::FUNCTIONAL structure
.
#+
:CMU
(
progn
...
...
@@ -834,24 +834,25 @@
(
c::make-lexenv
:functions
(
append
(
mapcar
#'
(
lambda
(
f
)
(
list
(
car
f
)
'
function
))
(
cons
(
car
f
)
(
c::make-
function
al
)
))
functions
)
(
mapcar
#'
(
lambda
(
m
)
(
list*
(
car
m
)
'lisp::macro
(
cadr
m
)))
(
list*
(
car
m
)
'c::macro
(
coerce
(
cadr
m
)
'function
)))
macros
)))))
(
defun
environment-function
(
env
fn
)
(
when
env
(
let
((
entry
(
assoc
fn
(
c::lexenv-functions
env
)
:test
#'
eq
)))
(
and
entry
(
eq
(
c
a
dr
entry
)
'function
)
(
cd
d
r
entry
)))))
(
let
((
entry
(
assoc
fn
(
c::lexenv-functions
env
)
:test
#'
eq
ual
)))
(
and
entry
(
c::functional-p
(
cdr
entry
))
(
cdr
entry
)))))
(
defun
environment-macro
(
env
macro
)
(
when
env
(
let
((
entry
(
assoc
macro
(
c::lexenv-functions
env
)
:test
#'
eq
)))
(
and
entry
(
eq
(
cadr
entry
)
'
lisp
::macro
)
(
eq
(
cadr
entry
)
'
c
::macro
)
(
cddr
entry
)))))
)
; end of #+:CMU
...
...
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