mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-15 05:43:19 -08:00
Replace ecl_endp() by a single list check and Null check.
This commit is contained in:
parent
3da7384797
commit
40f2552ffb
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ cl_object
|
|||
cl_values_list(cl_object list)
|
||||
{
|
||||
VALUES(0) = Cnil;
|
||||
for (NVALUES=0; !ecl_endp(list); list=ECL_CONS_CDR(list)) {
|
||||
for (NVALUES=0; !Null(list); list=ECL_CONS_CDR(list)) {
|
||||
if (!LISTP(list)) FEtype_error_list(list);
|
||||
if (NVALUES == ECL_MULTIPLE_VALUES_LIMIT)
|
||||
FEerror("Too many values in VALUES-LIST",0);
|
||||
VALUES(NVALUES++) = ECL_CONS_CAR(list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue