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: stefan
Subject: Re: proposal: scm_string2str() and scm_symbol2str()
Date: Fri, 30 Nov 2001 02:38:56 +0100 (CET)

On Thu, 29 Nov 2001, Dirk Herrmann wrote:

> > > > 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.

I am not sure what you mean.  Threads are meant to share data?  You might
setup the 

{
  scm_c_malloc = malloc;
}

for each thread you are starting.  Is this what you mean? No, can't be,
its a part of data, too...  Have no clue.  Could you please explain?

Cheers,
        address@hidden




reply via email to

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