Re: scm_to_pointer vs scm->pointer

2012-07-05 Thread Ludovic Courtès
Hi, Andy Wingo skribis: > On Tue 03 Jul 2012 23:47, l...@gnu.org (Ludovic Courtès) writes: > >>> This should be fixed. Otherwise it's impossible to document in any >>> sane fashion. >>> >>> Suggestion: change scm_to_pointer to SCM_POINTER_VALUE. WDYT? >> >> I’m happy with this change. Mark? >

Re: scm_to_pointer vs scm->pointer

2012-07-04 Thread Andy Wingo
On Tue 03 Jul 2012 23:47, l...@gnu.org (Ludovic Courtès) writes: >> This should be fixed. Otherwise it's impossible to document in any >> sane fashion. >> >> Suggestion: change scm_to_pointer to SCM_POINTER_VALUE. WDYT? > > I’m happy with this change. Mark? > > (Back then, I was skeptical about

Re: scm_to_pointer vs scm->pointer

2012-07-03 Thread Ludovic Courtès
Heya! Andy Wingo skribis: > scm->pointer takes a Scheme value and returns a Scheme value which is a > foreign pointer to the Scheme value. It has been in Guile since 2.0 I > think. v2.0.0-105-g148c331, apparently. > scm_to_pointer takes a Scheme value which is a foreign pointer, and > unpacks

scm_to_pointer vs scm->pointer

2012-07-02 Thread Andy Wingo
Hello, scm->pointer takes a Scheme value and returns a Scheme value which is a foreign pointer to the Scheme value. It has been in Guile since 2.0 I think. scm_to_pointer takes a Scheme value which is a foreign pointer, and unpacks that foregin pointer as a void*. scm_to_pointer is a new interf