refactors to load.c to support auto-compilation
authorAndy Wingo <wingo@pobox.com>
Wed, 3 Jun 2009 07:24:35 +0000 (09:24 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 3 Jun 2009 20:20:55 +0000 (22:20 +0200)
commit1d022387c8f2615cc94a27109db9b9e02d7d7831
treecb288f943c88e8b487e607d189ea1e8750d5334a
parentf3130a2ecf218f3709de13c10c54e8586fe0aef2
refactors to load.c to support auto-compilation

* libguile/load.c (compiled_is_newer): Factored out of
  scm_primitive_load_path.
  (scm_try_autocompile): New stub, for autocompiling. Currently just
  returns false.
  (scm_primitive_load_path): Refactor, and call out to
  scm_try_autocompile if the .go is missing or not fresh.
libguile/load.c