Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lisp-invocation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
qitab
lisp-invocation
Commits
7e3396f4
Commit
7e3396f4
authored
10 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Use normalized identifier to determine environment variable
parent
c687a280
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisp-invocation.lisp
+6
-4
6 additions, 4 deletions
lisp-invocation.lisp
with
6 additions
and
4 deletions
lisp-invocation.lisp
+
6
−
4
View file @
7e3396f4
...
...
@@ -52,7 +52,7 @@
`
(
apply
'register-lisp-implementation
',key
',keys
))
(
defun
register-lisp-implementation
(
key
&rest
keys
)
(
let*
((
identifiers
(
if
(
consp
key
)
key
(
list
key
))
)
(
let*
((
identifiers
(
ensure-
list
key
))
(
implementation
(
apply
#'
make-lisp-implementation
:identifiers
identifiers
keys
)))
(
dolist
(
id
identifiers
)
(
setf
(
gethash
id
*lisp-implementations*
)
implementation
))))
...
...
@@ -272,9 +272,11 @@
(
t
n
)))))
(
defun
lisp-environment-variable-name
(
&key
(
type
(
implementation-type
))
prefix
suffix
)
(
when
(
eq
prefix
t
)
(
setf
prefix
"X"
))
(
when
(
eq
suffix
t
)
(
setf
prefix
"_OPTIONS"
))
(
format
nil
"~@[~A~]~:@(~A~)~@[~A~]"
prefix
type
suffix
))
(
let*
((
implementation
(
get-lisp-implementation
type
))
(
name
(
first
(
lisp-implementation-identifiers
implementation
))))
(
when
(
eq
prefix
t
)
(
setf
prefix
"X"
))
(
when
(
eq
suffix
t
)
(
setf
prefix
"_OPTIONS"
))
(
format
nil
"~@[~A~]~:@(~A~)~@[~A~]"
prefix
name
suffix
)))
(
defun
lisp-invocation-arglist
(
&key
(
implementation-type
(
implementation-type
))
...
...
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