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
1c1bbb6a
Commit
1c1bbb6a
authored
21 years ago
by
gerd
Browse files
Options
Downloads
Patches
Plain Diff
* src/code/byte-interp.lisp (invoke-xep): Signal program-error
for argument count and keyword argument errors.
parent
99dd8390
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/byte-interp.lisp
+8
-6
8 additions, 6 deletions
code/byte-interp.lisp
with
8 additions
and
6 deletions
code/byte-interp.lisp
+
8
−
6
View file @
1c1bbb6a
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/byte-interp.lisp,v 1.3
7
2003/0
5/26 20:20:32
gerd Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/byte-interp.lisp,v 1.3
8
2003/0
7/15 19:12:00
gerd Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -1358,7 +1358,7 @@
((
typep
xep
'simple-byte-function
)
(
unless
(
eql
(
simple-byte-function-num-args
xep
)
num-args
)
(
with-debugger-info
(
old-component
ret-pc
old-fp
)
(
error
"Wrong number of arguments."
)))
(
error
'simple-program-error
"Wrong number of arguments."
)))
(
simple-byte-function-entry-point
xep
))
(
t
(
let
((
min
(
hairy-byte-function-min-args
xep
))
...
...
@@ -1366,12 +1366,12 @@
(
cond
((
<
num-args
min
)
(
with-debugger-info
(
old-component
ret-pc
old-fp
)
(
error
"Not enough arguments."
)))
(
error
'simple-program-error
"Not enough arguments."
)))
((
<=
num-args
max
)
(
nth
(
-
num-args
min
)
(
hairy-byte-function-entry-points
xep
)))
((
null
(
hairy-byte-function-more-args-entry-point
xep
))
(
with-debugger-info
(
old-component
ret-pc
old-fp
)
(
error
"Too many arguments."
)))
(
error
'simple-program-error
"Too many arguments."
)))
(
t
(
let*
((
more-args-supplied
(
-
num-args
max
))
(
sp
(
current-stack-pointer
))
...
...
@@ -1398,7 +1398,8 @@
(
t
(
unless
(
evenp
more-args-supplied
)
(
with-debugger-info
(
old-component
ret-pc
old-fp
)
(
error
"Odd number of keyword arguments."
)))
(
error
'simple-program-error
"Odd number of keyword arguments."
)))
;;
;; If there are keyword args, then we need to leave the
;; defaulted and supplied-p values where the more args
...
...
@@ -1461,7 +1462,8 @@
(
incf
target
))))))))
(
when
(
and
bogus-key-p
(
not
allow
))
(
with-debugger-info
(
old-component
ret-pc
old-fp
)
(
error
"Unknown keyword: ~S"
bogus-key
))))
(
error
'simple-program-error
"Unknown keyword: ~S"
bogus-key
))))
(
setf
(
current-stack-pointer
)
new-sp
)))))
(
hairy-byte-function-more-args-entry-point
xep
))))))))
(
declare
(
type
pc
entry-point
))
...
...
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