From 2b5558f402183b2c42657ad8709d2ab72ba018c4 Mon Sep 17 00:00:00 2001 From: Yorick Hardy Date: Fri, 28 Aug 2020 07:14:57 +0200 Subject: [PATCH] cyclone: update to cyclone-0.20 Cyclone Scheme 0.20 August 14th, 2020 Features * Added the ability to call Scheme code from C. This includes: - C function Cyc_scm_call which allows execution of arbitrary Scheme code, and returns objects that can be safely used by the caller. - C function Cyc_scm_call_no_gc. This function imposes more restrictions but does not register with the Cyclone garbage collector so there is less overhead. - Full code examples in the examples/call-scm-from-c directory in the Cyclone source tree. * Added the -COBJ compiler flag to allow Cyclone to link an executable using objects that are generated by an external source such as a makefile. Cyclone Scheme 0.19 August 3rd, 2020 Features * Improved error messages with filename and line numbers are now provided for a wide range of syntax errors. * Added c-void type into (cyclone foreign). Bug Fixes * Fixed a bug in the optimized numeric comparison operators when comparing a double with a bignum, that could lead to undefined behavior. * Fixed make_empty_bytevector and make_c_opaque parameters on (cyclone foreign). * Avoid compilation errors when a program ends with a set! expression. Thanks to Yorick Hardy for the bug report! * Fixed a bug with the interpreter such that running an import will no longer remove definitions from the global environment. * Fixed another interpreter bug to allow import to load renamed identifiers. * Prevent compiler errors when calling an anonymous lambda that accepts an optional argument list. --- cyclone/Makefile | 2 +- cyclone/distinfo | 10 +++++----- cyclone/patches/patch-Makefile | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cyclone/Makefile b/cyclone/Makefile index 8698ca2e52..e2774d30a1 100644 --- a/cyclone/Makefile +++ b/cyclone/Makefile @@ -1,7 +1,7 @@ # $NetBSD$ GITHUB_PROJECT= cyclone-bootstrap -GITHUB_TAG= v0.18 +GITHUB_TAG= v0.20 DISTNAME= ${GITHUB_TAG} PKGNAME= cyclone-${DISTNAME:S,^v,,} CATEGORIES= lang diff --git a/cyclone/distinfo b/cyclone/distinfo index e5bd379831..5a910799d6 100644 --- a/cyclone/distinfo +++ b/cyclone/distinfo @@ -1,8 +1,8 @@ $NetBSD$ -SHA1 (cyclone-bootstrap/v0.18.tar.gz) = 3134f7ab846316b5e671b7217bc7394f9f948d36 -RMD160 (cyclone-bootstrap/v0.18.tar.gz) = 36e74027001bb6fa24375311d757c249729debe9 -SHA512 (cyclone-bootstrap/v0.18.tar.gz) = b0e6c689a1dac191fe0fc5a68061736d2aea9925b93759d04884444acd319a674952beae7fcf5e7195dcdd27dcb32d0afc0d03477c4a15f4cb8a23b1a9c2c95b -Size (cyclone-bootstrap/v0.18.tar.gz) = 3280822 bytes -SHA1 (patch-Makefile) = f02f239e52224945d1bc02a94405373be5b427b6 +SHA1 (cyclone-bootstrap/v0.20.tar.gz) = d0e3931ca98b22b28cdcad153593ed7a3737498e +RMD160 (cyclone-bootstrap/v0.20.tar.gz) = fdef410c736fbd0dffdf3a7f7d90d8f8cebef0b0 +SHA512 (cyclone-bootstrap/v0.20.tar.gz) = e83ad18dad4baf575f744c7ce77f01931ebe03b2fcf8174947fdb90f9136ef3ba0eac3cc1576c15f777d1d022a04c8ed8af57926d31afb07c88bf9f28ac5a9df +Size (cyclone-bootstrap/v0.20.tar.gz) = 3312387 bytes +SHA1 (patch-Makefile) = 57caf8baa42259b870b5a47aad8d54bcee277515 SHA1 (patch-Makefile.config) = b5f857305be64f8c05c04449bf5125746e44eb51 diff --git a/cyclone/patches/patch-Makefile b/cyclone/patches/patch-Makefile index d2ec2b7fa5..2ccd499b2e 100644 --- a/cyclone/patches/patch-Makefile +++ b/cyclone/patches/patch-Makefile @@ -2,7 +2,7 @@ $NetBSD$ Use pkgsrc libtommath (internally named libcyclonebn). ---- Makefile.orig 2020-06-08 22:26:41.000000000 +0000 +--- Makefile.orig 2020-08-14 21:48:06.000000000 +0000 +++ Makefile @@ -8,8 +8,8 @@ include Makefile.config @@ -15,8 +15,8 @@ Use pkgsrc libtommath (internally named libcyclonebn). CYC_LIBS = $(CYC_RT_LIB) $(CYC_BN_LIB) COBJ = scheme/base \ -@@ -95,8 +95,8 @@ $(CYC_RT_LIB): runtime.c include/cyclone - $(CREATE_LIBRARY_COMMAND) $(CREATE_LIBRARY_FLAGS) $(LIBRARY_OUTPUT_FILE) runtime.o gc.o dispatch.o mstreams.o hashset.o +@@ -96,8 +96,8 @@ $(CYC_RT_LIB): runtime.c include/cyclone + $(CREATE_LIBRARY_COMMAND) $(CREATE_LIBRARY_FLAGS) $(LIBRARY_OUTPUT_FILE) runtime.o gc.o dispatch.o ffi.o mstreams.o hashset.o $(RANLIB_COMMAND) -$(CYC_BN_LIB) : $(CYC_BN_LIB_SUBDIR)/*.c @@ -26,7 +26,7 @@ Use pkgsrc libtommath (internally named libcyclonebn). cyclone: $(CFILES) $(COBJECTS) $(C_SHARED_OBJECTS) $(CYC_LIBS) $(CC) cyclone.c $(CFLAGS) -c -o cyclone.o -@@ -164,7 +164,7 @@ install: +@@ -166,7 +166,7 @@ install: #install-libs: $(MKDIR) $(DESTDIR)$(LIBDIR) $(INSTALL) -m0644 $(CYC_RT_LIB) $(DESTDIR)$(LIBDIR)/ @@ -35,7 +35,7 @@ Use pkgsrc libtommath (internally named libcyclonebn). #install-cyclone: $(MKDIR) $(DESTDIR)$(BINDIR) $(MKDIR) $(DESTDIR)$(DATADIR)/scheme/cyclone -@@ -189,7 +189,7 @@ install: +@@ -191,7 +191,7 @@ install: $(INSTALL) -m0755 icyc $(DESTDIR)$(BINDIR)/ $(INSTALL) -m0755 cyclone-winds $(DESTDIR)$(BINDIR)/ $(INSTALL) -m0644 $(CYC_RT_LIB) $(DESTDIR)$(LIBDIR)/