shithub: femtolisp

Download patch

ref: 2ddebfff4c9d7596046acfac764a4d295499b18d
parent: 8a4ce82e5f10aa333f411850304a5a2d2e455dc1
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Oct 29 00:40:54 EDT 2024

remove remnants of BOEHM

--- a/flisp.c
+++ b/flisp.c
@@ -2078,8 +2078,8 @@
 
 // initialization -------------------------------------------------------------
 
-static void
-lisp_init(size_t initial_heapsize)
+void
+fl_init(size_t initial_heapsize)
 {
 	int i;
 
@@ -2199,15 +2199,6 @@
 fl_toplevel_eval(value_t expr)
 {
 	return fl_applyn(1, symbol_value(evalsym), expr);
-}
-
-void
-fl_init(size_t initial_heapsize)
-{
-#ifdef BOEHM_GC
-	GC_init();
-#endif
-	lisp_init(initial_heapsize);
 }
 
 int
--- a/iostream.c
+++ b/iostream.c
@@ -332,9 +332,7 @@
 		// outgrew initial space
 		size_t sz;
 		cv->data = ios_takebuf(&dest, &sz);
-#ifndef BOEHM_GC
 		cv_autorelease(cv);
-#endif
 	}else{
 		((char*)cv->data)[n] = '\0';
 	}
@@ -378,9 +376,7 @@
 		char *b = ios_takebuf(st, &n); n--;
 		b[n] = '\0';
 		str = cvalue_from_ref(stringtype, b, n, FL_NIL);
-#ifndef BOEHM_GC
 		cv_autorelease(ptr(str));
-#endif
 	}
 	return str;
 }