summaryrefslogtreecommitdiff
path: root/libguile/load.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-08-18 11:05:17 +0200
committerAndy Wingo <wingo@pobox.com>2009-08-18 11:06:04 +0200
commit9591a2b016c5c11d2cd92ff0d43cd511f28bc07f (patch)
tree794c6a9ce84a46dae074dc0f1e9f676b756e0455 /libguile/load.h
parente33a910dd0f430f34c32fe6846899aee33fc2cf6 (diff)
downloadguile-9591a2b016c5c11d2cd92ff0d43cd511f28bc07f.tar.gz
`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.
Diffstat (limited to 'libguile/load.h')
-rw-r--r--libguile/load.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/load.h b/libguile/load.h
index d5bc1b066..1a1a86528 100644
--- a/libguile/load.h
+++ b/libguile/load.h
@@ -36,6 +36,7 @@ SCM_API SCM scm_search_path (SCM path, SCM filename, SCM exts, SCM require_exts)
SCM_API SCM scm_sys_search_load_path (SCM filename);
SCM_API SCM scm_primitive_load_path (SCM filename, SCM exception_on_not_found);
SCM_API SCM scm_c_primitive_load_path (const char *filename);
+SCM_INTERNAL SCM scm_sys_warn_autocompilation_enabled (void);
SCM_INTERNAL void scm_init_load_path (void);
SCM_INTERNAL void scm_init_load (void);