Avoid use of `GC_PTR' in "smob.h".
authorLudovic Courtès <ludo@gnu.org>
Thu, 12 Apr 2012 21:16:48 +0000 (23:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 12 Apr 2012 21:16:48 +0000 (23:16 +0200)
Commit c46fee438cf9f4a3449e8d04e7a54805517fd092 removed the "bdw-gc.h"
include from "smob.h", so better avoid `GC_PTR'.

* libguile/smob.c (scm_i_finalize_smob): Use `void *' instead of `GC_PTR'.
* libguile/smob.h (scm_i_finalize_smob): Update declaration accordingly.

libguile/smob.c
libguile/smob.h

index 1911460..215bb59 100644 (file)
@@ -454,7 +454,7 @@ scm_i_new_double_smob (scm_t_bits tc, scm_t_bits data1,
    SCM_NEWSMOB and are no longer used.  They are still here to preserve
    ABI stability in the 2.0 series.  */
 void
-scm_i_finalize_smob (GC_PTR ptr, GC_PTR data)
+scm_i_finalize_smob (void *ptr, void *data)
 {
   finalize_smob (ptr, data);
 }
index d4b7c6c..60abe37 100644 (file)
@@ -76,7 +76,7 @@ SCM_INLINE SCM scm_new_double_smob (scm_t_bits tc, scm_t_bits,
 /* These two are internal details of the previous implementation of
    SCM_NEWSMOB and are no longer used.  They are still here to preserve
    ABI stability in the 2.0 series.  */
-SCM_API void scm_i_finalize_smob (GC_PTR ptr, GC_PTR data);
+SCM_API void scm_i_finalize_smob (void *ptr, void *data);
 SCM_API SCM scm_i_new_smob_with_mark_proc (scm_t_bits tc, scm_t_bits,
                                            scm_t_bits, scm_t_bits);