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
685137ca
Commit
685137ca
authored
26 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Fix the argument passing to the '/ format directive function; problem
noticed by Sam Steingold.
parent
4b4694c6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/format.lisp
+22
-19
22 additions, 19 deletions
code/format.lisp
with
22 additions
and
19 deletions
code/format.lisp
+
22
−
19
View file @
685137ca
...
@@ -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/format.lisp,v 1.3
8
1998/06/1
8 07
:09:
47
dtc Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/format.lisp,v 1.3
9
1998/06/1
9 15
:09:
22
dtc Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -2351,28 +2351,31 @@
...
@@ -2351,28 +2351,31 @@
(
def-format-directive
#\/
(
string
start
end
colonp
atsignp
params
)
(
def-format-directive
#\/
(
string
start
end
colonp
atsignp
params
)
(
let
((
symbol
(
extract-user-function-name
string
start
end
)))
(
let
((
symbol
(
extract-user-function-name
string
start
end
)))
(
collect
((
param-names
)
(
bindings
))
(
collect
((
param-names
)
(
bindings
))
(
dolist
(
param
params
)
(
dolist
(
param-and-offset
params
)
(
let
((
param-name
(
gensym
)))
(
let
((
offset
(
car
param-and-offset
))
(
param-names
param-name
)
(
param
(
cdr
param-and-offset
)))
(
bindings
`
(
,
param-name
(
let
((
param-name
(
gensym
)))
,
(
case
param
(
param-names
param-name
)
(
:arg
(
expand-next-arg
))
(
bindings
`
(
,
param-name
(
:remaining
'
(
length
args
))
,
(
case
param
(
t
param
))))))
(
:arg
(
expand-next-arg
))
`
(
let
,
(
bindings
)
(
:remaining
'
(
length
args
))
(
,
symbol
stream
,
(
expand-next-arg
)
,
colonp
,
atsignp
(
t
param
)))))))
,@
(
param-names
))))))
`
(
let
,
(
bindings
)
(
,
symbol
stream
,
(
expand-next-arg
)
,
colonp
,
atsignp
,@
(
param-names
))))))
(
def-format-interpreter
#\/
(
string
start
end
colonp
atsignp
params
)
(
def-format-interpreter
#\/
(
string
start
end
colonp
atsignp
params
)
(
let
((
symbol
(
extract-user-function-name
string
start
end
)))
(
let
((
symbol
(
extract-user-function-name
string
start
end
)))
(
collect
((
args
))
(
collect
((
args
))
(
dolist
(
param
params
)
(
dolist
(
param-and-offset
params
)
(
case
param
(
let
((
offset
(
car
param-and-offset
))
(
:arg
(
args
(
next-arg
)))
(
param
(
cdr
param-and-offset
)))
(
:remaining
(
args
(
length
args
)))
(
case
param
(
t
(
args
param
))))
(
:arg
(
args
(
next-arg
)))
(
apply
(
fdefinition
symbol
)
stream
(
next-arg
)
(
:remaining
(
args
(
length
args
)))
colonp
atsignp
(
args
)))))
(
t
(
args
param
)))))
(
apply
(
fdefinition
symbol
)
stream
(
next-arg
)
colonp
atsignp
(
args
)))))
(
defun
extract-user-function-name
(
string
start
end
)
(
defun
extract-user-function-name
(
string
start
end
)
(
let
((
slash
(
position
#\/
string
:start
start
:end
(
1-
end
)
(
let
((
slash
(
position
#\/
string
:start
start
:end
(
1-
end
)
...
...
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