avoid duplicate stats when searching for files in a path
authorAndy Wingo <wingo@pobox.com>
Wed, 3 Aug 2011 10:36:55 +0000 (12:36 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 3 Aug 2011 10:43:29 +0000 (12:43 +0200)
commita6e1e050941a39821f1022ce7a655ac511879b7a
tree75e9a46e5b0f3b2138e201d7f7819bc4bf407d6f
parente4f6e855b6f96cd58f6643949438384be5470a39
avoid duplicate stats when searching for files in a path

* libguile/load.c (search_path): Extract from scm_search_path, to
  give the caller the stat buffer of the found path.
  (scm_search_path, scm_sys_search_load_path): Adapt accordingly.
  (compiled_is_fresh): Take the stat buffers directly.
  (scm_primitive_load_path, scm_init_eval_in_scheme): Adapt to
  search_path / compiled_is_fresh changes to avoid duplicate states in
  search-path.
libguile/load.c