1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Avoid use of `GC_PTR' in "smob.h".

Commit c46fee438c 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.
This commit is contained in:
Ludovic Courtès 2012-04-12 23:16:48 +02:00
parent 5ef102cc93
commit 0f6dd25023
2 changed files with 2 additions and 2 deletions

View 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);
}

View 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);