guile-devel
[Top][All Lists]
Advanced

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

Re: proposal: scm_string2str() and scm_symbol2str()


From: Dirk Herrmann
Subject: Re: proposal: scm_string2str() and scm_symbol2str()
Date: Thu, 29 Nov 2001 22:49:05 +0100 (MET)

On Wed, 28 Nov 2001, stefan wrote:

> On 27 Nov 2001, Marius Vollmer wrote:
> 
> > stefan <address@hidden> writes:
> > 
> > > We could make life easier, if we supplied the following:
> > > 
> > > typedef void * (* scm_t_malloc_func) (size_t);
> > > typedef void (* svz_t_free_func) (void *);
> > > 
> > > SCM_API scm_t_malloc_func scm_c_malloc = malloc;
> > > SCM_API scm_t_free_func scm_c_free = free;
> > 
> > Doesn't _every_ library on Win32 has this problem?  Do they all solve
> > it on their own?
> 
> Yes.  Portable programs solve this problem.  Especially the ancient
> libraries like `zlib' all provide such functionality if necessary.  The
> function pointers seems to be the favourite...

Unfortunately it doesn't work well with threads, at least not in the way
you are suggesting.

Best regards
Dirk Herrmann




reply via email to

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