1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 22:40:34 +02:00

(scm_list_n): check validate non-immediate arguments;

this will catch forgotten a SCM_UNDEFINED.
This commit is contained in:
Han-Wen Nienhuys 2004-02-20 21:15:56 +00:00
parent 83078c1ebd
commit eb741d98e2
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-02-20 Han-Wen Nienhuys <hanwen@xs4all.nl>
* list.c (scm_list_n): validate non-immediate arguments;
this will catch forgotten a SCM_UNDEFINED.
2004-02-18 Marius Vollmer <mvo@zagadka.de>
* gc.h (scm_gc_cells_collected): Removed duplicated declaration.

View file

@ -90,6 +90,9 @@ scm_list_n (SCM elt, ...)
var_start (foo, elt);
while (! SCM_UNBNDP (elt))
{
if (SCM_NIMP (elt))
SCM_VALIDATE_CELL(elt, 0);
*pos = scm_cons (elt, SCM_EOL);
pos = SCM_CDRLOC (*pos);
elt = va_arg (foo, SCM);