mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 20:30:28 +02:00
Fix assembler for keyword args
* module/system/vm/assembler.scm (begin-kw-arity, kw-prelude): Fix functions with keywords.
This commit is contained in:
parent
be0a8bb4f0
commit
8695854a7d
1 changed files with 3 additions and 3 deletions
|
@ -659,8 +659,8 @@ returned instead."
|
||||||
(assert-match req ((? symbol?) ...) "list of symbols")
|
(assert-match req ((? symbol?) ...) "list of symbols")
|
||||||
(assert-match opt ((? symbol?) ...) "list of symbols")
|
(assert-match opt ((? symbol?) ...) "list of symbols")
|
||||||
(assert-match rest (or #f (? symbol?)) "#f or symbol")
|
(assert-match rest (or #f (? symbol?)) "#f or symbol")
|
||||||
(assert-match kw-indices (((? symbol?) . (? integer?)) ...)
|
(assert-match kw-indices (((? keyword?) . (? integer?)) ...)
|
||||||
"alist of symbol -> integer")
|
"alist of keyword -> integer")
|
||||||
(assert-match allow-other-keys? (? boolean?) "boolean")
|
(assert-match allow-other-keys? (? boolean?) "boolean")
|
||||||
(assert-match nlocals (? integer?) "integer")
|
(assert-match nlocals (? integer?) "integer")
|
||||||
(assert-match alternate (or #f (? symbol?)) "#f or symbol")
|
(assert-match alternate (or #f (? symbol?)) "#f or symbol")
|
||||||
|
@ -726,7 +726,7 @@ returned instead."
|
||||||
(pack-flags allow-other-keys? rest?)
|
(pack-flags allow-other-keys? rest?)
|
||||||
(+ nreq nopt)
|
(+ nreq nopt)
|
||||||
ntotal
|
ntotal
|
||||||
kw-indices)
|
(intern-constant asm kw-indices))
|
||||||
(emit-alloc-frame asm nlocals)))
|
(emit-alloc-frame asm nlocals)))
|
||||||
|
|
||||||
(define-macro-assembler (label asm sym)
|
(define-macro-assembler (label asm sym)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue