[racket] define-match-expander and embedded racket

From: Tim Brown (tim.brown at cityc.co.uk)
Date: Fri Jan 25 12:13:59 EST 2013

On 25/01/13 17:04, Matthew Flatt wrote:
> I wasn't able to replicate the error that you get, but I notice that
> your C code doesn't cooperate with the GC.

I'm following the recipe in "1.5.1 CGC Embedding" in
http://docs.racket-lang.org/inside/overview.html?q=embedding#%28part._embedding%29

I use scheme_main_setup. Isn't that meant to get me playing nice with the
GC?

> Does it change anything if, in trampoline_main(), you add
>
>      MZ_GC_DECL_REG(1);
>      MZ_GC_VAR_IN_REG(0, e);
>      MZ_GC_REG();
>
> at the start and
>
>    MZ_GC_UNREG();
>
> before returning?

That change has no effect, I'm afraid.

Tim

-- 
Tim Brown <tim.brown at cityc.co.uk>  | City Computing Limited            |
T: +44 20 8770 2110                | City House, Sutton Park Road      |
F: +44 20 8770 2130                | Sutton, Surrey, SM1 2AE, GB       |
-----------------------------------------------------------------------|
BEAUTY:  What's in your eye when you have a bee in your hand           |
-----------------------------------------------------------------------'
City Computing Limited registered in London No. 1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT number 372 8290 34.

Posted on the users mailing list.