unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* scm_to_pointer vs scm->pointer
@ 2012-07-02 21:38 Andy Wingo
  2012-07-03 21:47 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Wingo @ 2012-07-02 21:38 UTC (permalink / raw)
  To: guile-devel

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 interface in master that is not in 2.0.5, and
that is inconsistent with scm->pointer / scm_scm_to_pointer.  This
should be fixed.  Otherwise it's impossible to document in any sane
fashion.

Suggestion: change scm_to_pointer to SCM_POINTER_VALUE.  WDYT?

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-05 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-02 21:38 scm_to_pointer vs scm->pointer Andy Wingo
2012-07-03 21:47 ` Ludovic Courtès
2012-07-04 15:35   ` Andy Wingo
2012-07-05 16:11     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).