mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 23:50:19 +02:00
* srfi/srfi-1.c (srfi1_ilength), libguile/list.c (scm_ilength,
scm_last_pair), libguile/unif.c (l2ra): Prefer !SCM_CONSP over SCM_NCONSP. * libguile/unif.c (l2ra): Eliminate redundant check. Now, guile itself does not include any calls to SCM_NCONSP any more.
This commit is contained in:
parent
9ff1720f85
commit
1685446c0d
5 changed files with 22 additions and 8 deletions
|
@ -2215,7 +2215,7 @@ l2ra (SCM lst, SCM ra, unsigned long base, unsigned long k)
|
|||
{
|
||||
while (n--)
|
||||
{
|
||||
if (SCM_IMP (lst) || SCM_NCONSP (lst))
|
||||
if (!SCM_CONSP (lst))
|
||||
return 0;
|
||||
ok = ok && l2ra (SCM_CAR (lst), ra, base, k + 1);
|
||||
base += inc;
|
||||
|
@ -2228,7 +2228,7 @@ l2ra (SCM lst, SCM ra, unsigned long base, unsigned long k)
|
|||
{
|
||||
while (n--)
|
||||
{
|
||||
if (SCM_IMP (lst) || SCM_NCONSP (lst))
|
||||
if (!SCM_CONSP (lst))
|
||||
return 0;
|
||||
scm_array_set_x (SCM_ARRAY_V (ra), SCM_CAR (lst), SCM_MAKINUM (base));
|
||||
base += inc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue