diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-05-09 08:21:02 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-05-09 18:35:18 +0100 |
commit | d974e9aced1d371e156deca25fcc22f65d15a3f8 (patch) | |
tree | fa615a6e9369c5e93262ecaafcbc6d9ff5289262 /Examples/guile/port | |
parent | 95e2142347fa2c69e2ddbe329584ce4a5eb09d51 (diff) | |
download | swig-d974e9aced1d371e156deca25fcc22f65d15a3f8.tar.gz |
Guile examples consistency changes
Use new guile_embedded_run target or guile_run target for running the
examples like the other target languages (for suppressing stdout if run
from top level).
Consistency with other target language file renames: use runme.scm for
scripts and example.i, example.c for example code.
Add class example to examples being tested.
Diffstat (limited to 'Examples/guile/port')
-rw-r--r-- | Examples/guile/port/Makefile | 7 | ||||
-rw-r--r-- | Examples/guile/port/README | 2 | ||||
-rw-r--r-- | Examples/guile/port/example.c (renamed from Examples/guile/port/port.c) | 0 | ||||
-rw-r--r-- | Examples/guile/port/example.i (renamed from Examples/guile/port/port.i) | 0 | ||||
-rw-r--r-- | Examples/guile/port/runme.scm (renamed from Examples/guile/port/port.scm) | 0 |
5 files changed, 5 insertions, 4 deletions
diff --git a/Examples/guile/port/Makefile b/Examples/guile/port/Makefile index 33eeab2e9..0088dd92f 100644 --- a/Examples/guile/port/Makefile +++ b/Examples/guile/port/Makefile @@ -1,10 +1,10 @@ -SRCS = port.c +SRCS = example.c TARGET = port -IFILE = port.i +IFILE = example.i MKDIR = .. check: build - ./$(TARGET) -s port.scm + ./$(TARGET) -s runme.scm build: $(MAKE) -f $(MKDIR)/Makefile \ @@ -16,3 +16,4 @@ build: clean: $(MAKE) -f $(MKDIR)/Makefile TARGET='$(TARGET)' guile_clean + rm -f test.out diff --git a/Examples/guile/port/README b/Examples/guile/port/README index 5ed0199e2..784e39e5d 100644 --- a/Examples/guile/port/README +++ b/Examples/guile/port/README @@ -1,2 +1,2 @@ This example illustrates the translation from Scheme file ports to -temporary FILE streams. Read the source and run ./port -s port.scm +temporary FILE streams. Read the source and run ./port -s runme.scm diff --git a/Examples/guile/port/port.c b/Examples/guile/port/example.c index 95867b687..95867b687 100644 --- a/Examples/guile/port/port.c +++ b/Examples/guile/port/example.c diff --git a/Examples/guile/port/port.i b/Examples/guile/port/example.i index eb7539173..eb7539173 100644 --- a/Examples/guile/port/port.i +++ b/Examples/guile/port/example.i diff --git a/Examples/guile/port/port.scm b/Examples/guile/port/runme.scm index 68e9b8e85..68e9b8e85 100644 --- a/Examples/guile/port/port.scm +++ b/Examples/guile/port/runme.scm |