`load' autocompiles
authorAndy Wingo <wingo@pobox.com>
Tue, 18 Aug 2009 09:05:17 +0000 (11:05 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 18 Aug 2009 09:06:04 +0000 (11:06 +0200)
commit9591a2b016c5c11d2cd92ff0d43cd511f28bc07f
tree794c6a9ce84a46dae074dc0f1e9f676b756e0455
parente33a910dd0f430f34c32fe6846899aee33fc2cf6
`load' autocompiles

* libguile/load.h:
* libguile/load.c (scm_sys_warn_autocompilation_enabled): New primitive,
  not exported. Since `load' autocompiles now, it should warn in the
  same way that the bits hardcoded into C warn.
  (scm_try_autocompile): Use scm_sys_warn_autocompilation_enabled.

* module/ice-9/boot-9.scm (autocompiled-file-name): New helper.
  (load): Try autocompiling the argument, if appropriate. Will
  autocompile files passed on Guile's command line. `primitive-load' is
  unaffected.
libguile/load.c
libguile/load.h
module/ice-9/boot-9.scm