Fix running of Guile multivalue and std_vector examples

This commit is contained in:
William S Fulton 2013-05-08 14:10:47 +01:00
commit 1adb239046
4 changed files with 6 additions and 3 deletions

View file

@ -5,6 +5,7 @@ TARGET = example
INTERFACE = example.i
check: build
$(MAKE) -f ../Makefile RUNSCRIPT=runme.scm run_example
build:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \

View file

@ -1,6 +1,6 @@
;;;; Show the three different ways to deal with multiple return values
(use-modules (example))
(dynamic-call "scm_init_example_module" (dynamic-link "./libexample"))
;;; Multiple values as lists. By default, if more than one value is to
;;; be returned, a list of the values is created and returned. The
@ -64,3 +64,4 @@
(display remainder)
(newline))
(exit 0)