[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Midi shortcuts

From: Richard Shann
Subject: Re: [Denemo-devel] Midi shortcuts
Date: Wed, 11 May 2011 09:14:22 +0100

On Tue, 2011-05-10 at 23:39 +0200, R. Mattes wrote:
> > Even more surprising, I have looked into what is 
> > happening with the scm_take_from_locale_string/n calls. In
> principle 
> > guile should be freeing the passed string when it is finished with 
> > it. 
> What makes ou belive this? The function signature in my header files
> is:
>  SCM_API SCM scm_from_locale_string (const char *str);
> Why would you expext a 'const char*' block to be freed?

you are looking at the wrong function here - I refer to scm_take_... the
"take" variant is supposed to free the string (it gives scheme the
opportunigy to re-use the string for its own storage of the string).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]