Reduce C heap allocations in 'search-path'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 31 Oct 2014 22:27:44 +0000 (23:27 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 31 Oct 2014 23:48:11 +0000 (00:48 +0100)
commit9c5d6aa9642891e571a7e7a2428c2084fe1058cf
tree073e46b754e92120792deba18469ecd3eb6b481b
parenta7bbba05838cabe2294f498e7008e1c51db6d664
Reduce C heap allocations in 'search-path'.

* libguile/load.c (scm_c_string_has_an_ext): Rename to...
  (string_has_an_ext): ... this.  Add docstring.  Change
  'str' to be an SCM, and remove 'len' parameter.  Change loop body to
  use 'scm_string_suffix_p'.
  (search_path): Update accordingly.
libguile/load.c