This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: scm_internal_dynamic_wind
- To: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Subject: Re: scm_internal_dynamic_wind
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 14 Mar 2000 17:17:31 +0100
- Cc: Guile Mailing List <guile at sourceware dot cygnus dot com>, Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Cc: djurfeldt at nada dot kth dot se
- References: <Pine.LNX.4.21.0003141634150.13413-100000@marvin.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> On 14 Mar 2000, Keisuke Nishida wrote:
>
> > Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> >
> > > The function scm_internal_dynamic_wind uses a void* as its fourth
> > > argument. In all places, where this function is used in guile (debug.c,
> > > load.c) the calling function actually passes a SCM value, but has to cast
> > > this to a void* in order to please the prototype.
> >
> > I guess you shouldn't, because the argument can be other than SCM.
> > I do actually pass a C structure in my patch of Guile Emacs.
>
> Ooops! Are you sure you are doing the right thing?
He is.
> I assume the function is intentionally called 'internal'.
It should have the name scm_c_dynamic_wind. It *is* actually intended
to be used by the application writer.