g-wrap-dev
[Top][All Lists]
Advanced

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

[MERGE-REQUEST] Bugfix in `guile-wct.c'; support for `mark' and `cleanup


From: Ludovic Courtès
Subject: [MERGE-REQUEST] Bugfix in `guile-wct.c'; support for `mark' and `cleanup'
Date: Thu, 15 Sep 2005 16:24:18 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Hi again,

Could you please merge the following two patches:

  patch-5
      Fixed `guile-wct.c' so that the user-defined mark function gets called.
  patch-6
      Added support for `mark' and `free' in <gw-wct>.

The first one fixes a bug in `gw_wct_create ()':  the MARK argument was
just ignored instead of being assigned to TYPE_DATA->MARK.
Additionally, it updated `wcp_data_mark ()' so that TYPE_DATA->MARK is
called when non-NULL.

The second patch proposes the addition of two slots to the <gw-wct>
class, namely `wcp-mark-function' and `wcp-free-function', that allow
the user to specify a pointer to a GC mark function and to a free
function.  `initializations-cg', in guile/g-wrap/guile.scm, is modified
accordingly to pass those pointers to `gw_wct_create ()'.

This second change might be somewhat controversial since it is partly
Guile-specific.  I believe `wcp-free-function' is _not_ specific,
but the other one is:  not all garbage collectors use a ``mark and
sweep'' algorithm.  However, I can't think of any other way to do that.

Thanks,
Ludovic.




reply via email to

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