Optimize scm_ilength and 'length+'.
authorMark H Weaver <mhw@netris.org>
Thu, 5 Jun 2014 00:42:21 +0000 (20:42 -0400)
committerMark H Weaver <mhw@netris.org>
Thu, 5 Jun 2014 00:42:21 +0000 (20:42 -0400)
commitfc8a90043bb8dc876cf638d9959348883c748fe3
treeae260c73ec2a2b63ec5ae80cbea65648da1c44e0
parent4afca1a0662323ed8760c75d84c3aadc64b72908
Optimize scm_ilength and 'length+'.

* libguile/list.c (scm_ilength): Test for SCM_NULL_OR_NIL_P only after
  testing scm_is_pair.  Conform to GNU coding standards.

* libguile/srfi-1.c (scm_srfi1_length_plus): Ditto.
libguile/list.c
libguile/srfi-1.c