Add loop.c -- a test program for repeatedly calling Py_Initialize()
and Py_Finalize(). It seems to dump core right now...
diff --git a/Demo/embed/Makefile b/Demo/embed/Makefile
index fb2b1ed..ee0196b 100644
--- a/Demo/embed/Makefile
+++ b/Demo/embed/Makefile
@@ -32,13 +32,20 @@
demo: demo.o
$(CC) $(LDFLAGS) demo.o $(ALLLIBS) -o demo
+loop: loop.o
+ $(CC) $(LDFLAGS) loop.o $(ALLLIBS) -o loop
+
# Administrative targets
test: demo
./demo
+COMMAND="print 'hello world'"
+looptest: loop
+ ./loop $(COMMAND)
+
clean:
-rm -f *.o core
clobber: clean
- -rm -f *~ @* '#'* demo
+ -rm -f *~ @* '#'* demo loop