RE: EXTERNAL: Re: Guile 1.8 Garbage Collection Question

2011-10-26 Thread Whitlock, Bradley D
Hm, thanks Andy. I settled on the following solution, no problems: SCM_DEFINE (libguile_fst_writer_emit_value, libguile-fst-writer-emit-value, 3,0,0, (SCM scm_ctx, SCM scm_fsthandle, SCM scm_val), Write a change on fstHandle) { // Storage for temporary

Re: EXTERNAL: Re: Guile 1.8 Garbage Collection Question

2011-10-26 Thread rixed
{ // Storage for temporary string char* s = NULL; scm_dynwind_begin (0); s = scm_to_locale_string (scm_val); fstWriterEmitValueChange(SCM_TO_CTX (scm_ctx), SCM_TO_FSTHANDLE (scm_fsthandle), s); scm_dynwind_free (s);