From c1a81b5f94050fa8e76f8a9f7023244d9983b927 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Wed, 1 Nov 2017 21:29:41 +0100 Subject: [PATCH] Emit ___type declarations in a prelude when needed This allows us to get rid of them in chicken.h, which makes it easier to change them at any point by decoupling bind from CHICKEN core. --- bind/bind.scm | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/bind/bind.scm b/bind/bind.scm index c189b43..380619a 100644 --- a/bind/bind.scm +++ b/bind/bind.scm @@ -18,7 +18,36 @@ (import bind-translator) (import (chicken io)) (import srfi-1) - (import srfi-13)) + (import srfi-13) + + (define emitted-prelude #f) + (define prelude #<