summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-04-12 23:16:48 +0200
committerLudovic Courtès <ludo@gnu.org>2012-04-12 23:16:48 +0200
commit0f6dd25023da59bcfefb080c66a2d2650d955ffa (patch)
treeea433c42d4dc42c3be0f4ecaae8dfbe0f71636b6
parent5ef102cc93a4f2eba0f5dad94a7306085b353000 (diff)
downloadguile-0f6dd25023da59bcfefb080c66a2d2650d955ffa.tar.gz
Avoid use of `GC_PTR' in "smob.h".
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.
-rw-r--r--libguile/smob.c2
-rw-r--r--libguile/smob.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libguile/smob.c b/libguile/smob.c
index 1911460cf..215bb5913 100644
--- a/libguile/smob.c
+++ b/libguile/smob.c
@@ -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);
}
diff --git a/libguile/smob.h b/libguile/smob.h
index d4b7c6cea..60abe3733 100644
--- a/libguile/smob.h
+++ b/libguile/smob.h
@@ -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);