mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 07:50:20 +02:00
(s_scm_append): add patch from Kevin Ryde to track argnum
in error messages.
This commit is contained in:
parent
33b482982a
commit
b2e64b4cdd
1 changed files with 3 additions and 1 deletions
|
@ -260,6 +260,7 @@ SCM_DEFINE (scm_append, "append", 0, 0, 1,
|
|||
SCM res = SCM_EOL;
|
||||
SCM *lloc = &res;
|
||||
SCM arg = SCM_CAR (args);
|
||||
int argnum = 1;
|
||||
args = SCM_CDR (args);
|
||||
while (!SCM_NULLP (args)) {
|
||||
while (SCM_CONSP (arg)) {
|
||||
|
@ -267,9 +268,10 @@ SCM_DEFINE (scm_append, "append", 0, 0, 1,
|
|||
lloc = SCM_CDRLOC (*lloc);
|
||||
arg = SCM_CDR (arg);
|
||||
}
|
||||
SCM_VALIDATE_NULL (SCM_ARGn, arg);
|
||||
SCM_VALIDATE_NULL (argnum, arg);
|
||||
arg = SCM_CAR (args);
|
||||
args = SCM_CDR (args);
|
||||
argnum++;
|
||||
};
|
||||
*lloc = arg;
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue