#x27;ed as an SCM), rather than a pointer to the cell
on the heap. Since that's the case then only the pointer is overwritten
and the cell containing the pointer to the malloc'ed string is still
sitting in the heap and would be collected properly.
Thanks - now I can sleep at night again
t;Example." )
#define FUNC_NAME s_example
{
SCM tmp;
int n;
tmp = scm_c_eval_string("(list \"foo\" \"bar\" \"baz\")");
n = do_something_with_tmp(tmp);
return SCM_MAKINUM(n);
}
#undef FUNC_NAME
Will the list returne