mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
* alist.c: Do not report mismatch errors on some uses of `tmp' (do
this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS macro call.
This commit is contained in:
parent
9179dcdd2e
commit
7e9f965801
1 changed files with 3 additions and 3 deletions
|
@ -150,7 +150,7 @@ return the entire alist entry found (i.e. both the key and the value).")
|
|||
for (; SCM_CONSP(alist); alist = SCM_CDR(alist))
|
||||
{
|
||||
SCM tmp = SCM_CAR(alist);
|
||||
SCM_VALIDATE_CONS(2, tmp);
|
||||
SCM_VALIDATE_CONS(SCM_ARG2, tmp);
|
||||
if (SCM_CAR(tmp) == key)
|
||||
return tmp;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ SCM_DEFINE (scm_assv, "assv", 2, 0, 0,
|
|||
for(; SCM_CONSP(alist); alist = SCM_CDR(alist))
|
||||
{
|
||||
SCM tmp = SCM_CAR(alist);
|
||||
SCM_VALIDATE_CONS(2, tmp);
|
||||
SCM_VALIDATE_CONS(SCM_ARG2, tmp);
|
||||
if SCM_NFALSEP(scm_eqv_p(SCM_CAR(tmp), key))
|
||||
return tmp;
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ SCM_DEFINE (scm_assoc, "assoc", 2, 0, 0,
|
|||
for(; SCM_CONSP(alist); alist = SCM_CDR(alist))
|
||||
{
|
||||
SCM tmp = SCM_CAR(alist);
|
||||
SCM_VALIDATE_CONS(2, tmp);
|
||||
SCM_VALIDATE_CONS(SCM_ARG2, tmp);
|
||||
if SCM_NFALSEP(scm_equal_p(SCM_CAR(tmp), key))
|
||||
return tmp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue