[plt-scheme] mzc question

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Sun Mar 2 21:11:48 EST 2008


Chongkai Zhu wrote:
>
> For this part of code you posted, neither 
> scheme_char_string_to_byte_string  nor SCHEME_BYTE_STR_VAL  will trig 
> GC, so you can just use XFORM_HIDE_EXPR to hide it from xfrom.
>  

Sorry but scheme_char_string_to_byte_string might trig the GC, so what I 
just suggested is wrong. You might consider first getting 
SCHEME_CHAR_STR_VAL, and then using scheme_utf8_encode functions, which 
are described in section 11 of "inside mzscheme" doc to get C char*.

Chongkai


Posted on the users mailing list.