diff options
author | Andy Wingo <wingo@pobox.com> | 2010-08-06 13:15:29 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-08-06 13:15:29 +0200 |
commit | bc325e763f540048adc0e6375172af5cfc38742e (patch) | |
tree | ac775f9b9c5ee6320e875ca3086d2e80f9a9f0df /libguile/load.h | |
parent | ca290a89f3109f125f1eb6eeea066053d4b52e95 (diff) | |
download | guile-bc325e763f540048adc0e6375172af5cfc38742e.tar.gz |
%site-dir is specific to the effective version
* libguile/load.h:
* libguile/load.c (scm_sys_global_site_dir): New API, is what %site-dir
used to be.
(scm_sys_site_dir): Changed to be a version-specific dir.
(scm_init_load_path): Search the version-specific sitedir before the
global one.
* libguile/Makefile.am (libpath.h): Update SCM_SITE_DIR and
SCM_GLOBAL_SITE_DIR, as appropriate.
Diffstat (limited to 'libguile/load.h')
-rw-r--r-- | libguile/load.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/load.h b/libguile/load.h index 0bff53cbd..d1afefbc0 100644 --- a/libguile/load.h +++ b/libguile/load.h @@ -3,7 +3,7 @@ #ifndef SCM_LOAD_H #define SCM_LOAD_H -/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -32,6 +32,7 @@ SCM_API SCM scm_c_primitive_load (const char *filename); SCM_API SCM scm_sys_package_data_dir (void); SCM_API SCM scm_sys_library_dir (void); SCM_API SCM scm_sys_site_dir (void); +SCM_API SCM scm_sys_global_site_dir (void); SCM_API SCM scm_search_path (SCM path, SCM filename, SCM rest); SCM_API SCM scm_sys_search_load_path (SCM filename); SCM_API SCM scm_primitive_load_path (SCM filename_and_exception_on_not_found); |