From 067df233c451a68a84dc69b4a6f4d16eac837542 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 12 Oct 2011 13:07:50 +0200 Subject: [PATCH] update tour.texi for site modules and extensions * doc/ref/tour.texi (Putting Extensions into Modules) (Writing new Modules): In the examples, show the files as being in the "site" dirs. --- doc/ref/tour.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/ref/tour.texi b/doc/ref/tour.texi index c6949eb34..41fafb1ba 100644 --- a/doc/ref/tour.texi +++ b/doc/ref/tour.texi @@ -235,7 +235,7 @@ in a location where Guile can automatically find it. The following session shows a simple example. @smallexample -$ cat /usr/local/share/guile/foo/bar.scm +$ cat /usr/local/share/guile/site/foo/bar.scm (define-module (foo bar) #:export (frob)) @@ -258,14 +258,14 @@ You do this by writing a small Scheme file that defines the module and call @code{load-extension} directly in the body of the module. @smallexample -$ cat /usr/local/share/guile/math/bessel.scm +$ cat /usr/local/share/guile/site/math/bessel.scm (define-module (math bessel) #:export (j0)) (load-extension "libguile-bessel" "init_bessel") -$ file /usr/local/lib/libguile-bessel.so +$ file /usr/local/lib/guile/@value{EFFECTIVE-VERSION}/extensions/libguile-bessel.so @dots{} ELF 32-bit LSB shared object @dots{} $ guile scheme@@(guile-user)> (use-modules (math bessel)) -- 2.20.1