summaryrefslogtreecommitdiffstats
path: root/src/guile-test.c
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-04-10 06:27:23 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-04-10 06:27:23 (GMT)
commit9d05d00a3024b31b94cce3950982fff358da1cc2 (patch)
treeebbb6d20a61962fb820e6eae404713c277aaff70 /src/guile-test.c
parent26ac64f318752a5a06e72b9d6d23ec9075a83a30 (diff)
downloadmxe-9d05d00a3024b31b94cce3950982fff358da1cc2.zip
mxe-9d05d00a3024b31b94cce3950982fff358da1cc2.tar.gz
mxe-9d05d00a3024b31b94cce3950982fff358da1cc2.tar.bz2
new package: guile
Diffstat (limited to 'src/guile-test.c')
-rw-r--r--src/guile-test.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/guile-test.c b/src/guile-test.c
new file mode 100644
index 0000000..d1bcd58
--- /dev/null
+++ b/src/guile-test.c
@@ -0,0 +1,18 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+#include <libguile.h>
+
+static void inner_main(void *data, int argc, char *argv[])
+{
+ (void)data;
+ (void)argc;
+ (void)argv;
+ scm_c_eval_string("(display \"Hello World!\\n\")");
+}
+
+int main(int argc, char *argv[])
+{
+ scm_boot_guile(argc, argv, inner_main, NULL);
+ return 0;
+}