summaryrefslogtreecommitdiff
path: root/examples/modules
diff options
context:
space:
mode:
authorMartin Grabmüller <mgrabmue@cs.tu-berlin.de>2001-06-14 20:36:06 +0000
committerMartin Grabmüller <mgrabmue@cs.tu-berlin.de>2001-06-14 20:36:06 +0000
commit673509f84f8b0fe3e5593e5473c844ce97c6075b (patch)
tree38efe18ce8e574d0b9fcbe128520e0912b9a1ce6 /examples/modules
parent4927dd283b1cefa4a0971081023e8d714ca97438 (diff)
downloadguile-673509f84f8b0fe3e5593e5473c844ce97c6075b.tar.gz
* scripts/README, scripts/hello.scm, safe/untrusted.scm,
safe/evil.scm, safe/README, modules/README, modules/main, modules/module-0.scm, modules/module-1.scm, modules/module-2.scm: Minor cleanup. * README: Added intro stuff, restructured a bit. * box-dynamic/README, box-module/README, box/README: Cleanup and restructuring. * box-dynamic-module/box-mixed.scm: New file, demonstrating usage of extension library functionality, but without exporting procedures from the library. Thanks to Thomas Wawrzinek for the idea and example code! * box-dynamic-module/box-module.scm: Add comments, export make-box, box-ref, box-set!. * box-dynamic-module/README: Integrate new module (box-mixed), restructure and cleanup a bit.
Diffstat (limited to 'examples/modules')
-rw-r--r--examples/modules/README12
-rw-r--r--examples/modules/module-0.scm2
-rw-r--r--examples/modules/module-1.scm2
-rw-r--r--examples/modules/module-2.scm2
4 files changed, 15 insertions, 3 deletions
diff --git a/examples/modules/README b/examples/modules/README
index 12df77f69..ddad881cc 100644
--- a/examples/modules/README
+++ b/examples/modules/README
@@ -1,4 +1,6 @@
- -*- text -*-
+ -*- outline -*-
+
+* Overview
This directory includes examples which show how to write and use Guile
modules in Scheme programs.
@@ -7,7 +9,11 @@ The descriptions below assume that you have a working copy of Guile
installed and available with the standard installation prefix
`/usr/local'.
-main:
+
+* Included Examples
+
+
+** main
The main program, which uses the modules described below to perform
some actions. Module usage and selective importing as well as
@@ -19,7 +25,7 @@ main:
guile -s main
-module-0.scm, module-1.scm, module-2.scm:
+** module-0.scm, module-1.scm, module-2.scm
Two modules which export several procedure, some of which have the
same names (so that renaming/selection is required for proper
diff --git a/examples/modules/module-0.scm b/examples/modules/module-0.scm
index 47e8433c7..a5a001b64 100644
--- a/examples/modules/module-0.scm
+++ b/examples/modules/module-0.scm
@@ -20,3 +20,5 @@
(define (bar)
(display "module-0 bar")
(newline))
+
+;;; End of file.
diff --git a/examples/modules/module-1.scm b/examples/modules/module-1.scm
index d62264021..6a7bb43e0 100644
--- a/examples/modules/module-1.scm
+++ b/examples/modules/module-1.scm
@@ -20,3 +20,5 @@
(define (bar)
(display "module-1 bar")
(newline))
+
+;;; End of file.
diff --git a/examples/modules/module-2.scm b/examples/modules/module-2.scm
index a63d5e492..3147b2cab 100644
--- a/examples/modules/module-2.scm
+++ b/examples/modules/module-2.scm
@@ -24,3 +24,5 @@
(define (braz)
(display "module-2 braz")
(newline))
+
+;;; End of file.