summaryrefslogtreecommitdiff
path: root/libguile/load.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-10-15 01:05:32 +0200
committerLudovic Courtès <ludo@gnu.org>2009-10-15 01:05:32 +0200
commit31ab99de563027fe2bceb60bbd712407fcaf868e (patch)
tree426e1b25bd5ccc01f3152eabcae62906ca62801e /libguile/load.h
parent682d78d05e567a46b1c443c5f852c575ab529f5a (diff)
downloadguile-31ab99de563027fe2bceb60bbd712407fcaf868e.tar.gz
Restore signature of `scm_primitive_load_path ()' as found in 1.8.
The incompatibility was introduced by 0fb81f95b0222c5ba49efd3e36cf797df54c0863 ("add exception_on_error optional arg to primitive-load-path"). * libguile/load.c (scm_primitive_load_path): Change to take 1 rest argument. Interpret the argument as either a file name (C-level backward compatibility with 1.8) or an actual argument list. (scm_c_primitive_load_path): Update caller. * libguile/load.h (scm_primitive_load_path): Update accordingly. * doc/ref/api-evaluation.texi (Loading): Update documentation of `primitive-load-path' and `scm_primitive_load_path ()'.
Diffstat (limited to 'libguile/load.h')
-rw-r--r--libguile/load.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/load.h b/libguile/load.h
index 1a1a86528..cf825fc0f 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 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009 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
@@ -34,7 +34,7 @@ SCM_API SCM scm_sys_library_dir (void);
SCM_API SCM scm_sys_site_dir (void);
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_primitive_load_path (SCM filename_and_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);