diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-07-01 17:32:03 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-07-02 11:19:51 +0200 |
commit | 6922d92f966a593e01dded92020a132ab15a71f6 (patch) | |
tree | d59fba8bb6151c6ba83694bff50e493b5a3f89ca /libguile/vectors.c | |
parent | bd5dea489bd02caa503ba57e1b799c90fa409fe9 (diff) | |
download | guile-6922d92f966a593e01dded92020a132ab15a71f6.tar.gz |
Use `void *' instead of `GC_PTR' internally.
* libguile/finalizers.c, libguile/foreign.c, libguile/guardians.c,
libguile/hashtab.c, libguile/numbers.c, libguile/ports.c,
libguile/smob.c, libguile/struct.c, libguile/vectors.c,
libguile/weaks.c: Use `void *' instead of `GC_PTR'.
Diffstat (limited to 'libguile/vectors.c')
-rw-r--r-- | libguile/vectors.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libguile/vectors.c b/libguile/vectors.c index 2805278f0..b386debf4 100644 --- a/libguile/vectors.c +++ b/libguile/vectors.c @@ -1,5 +1,6 @@ -/* Copyright (C) 1995,1996,1998,1999,2000,2001, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. - * +/* Copyright (C) 1995,1996,1998,1999,2000,2001, 2006, 2008, 2009, 2010, + * 2011, 2012 Free Software Foundation, Inc. + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 3 of @@ -277,9 +278,8 @@ scm_c_vector_set_x (SCM v, size_t k, SCM obj) if (SCM_I_WVECTP (v)) { /* Make it a weak pointer. */ - GC_PTR link = (GC_PTR) & ((SCM_I_VECTOR_WELTS (v))[k]); - SCM_I_REGISTER_DISAPPEARING_LINK (link, - (GC_PTR) SCM2PTR (obj)); + SCM *link = & SCM_I_VECTOR_WELTS (v)[k]; + SCM_I_REGISTER_DISAPPEARING_LINK ((void **) link, SCM2PTR (obj)); } } else if (SCM_I_ARRAYP (v) && SCM_I_ARRAY_NDIM (v) == 1) @@ -296,9 +296,8 @@ scm_c_vector_set_x (SCM v, size_t k, SCM obj) if (SCM_I_WVECTP (vv)) { /* Make it a weak pointer. */ - GC_PTR link = (GC_PTR) & ((SCM_I_VECTOR_WELTS (vv))[k]); - SCM_I_REGISTER_DISAPPEARING_LINK (link, - (GC_PTR) SCM2PTR (obj)); + SCM *link = & SCM_I_VECTOR_WELTS (vv)[k]; + SCM_I_REGISTER_DISAPPEARING_LINK ((void **) link, SCM2PTR (obj)); } } else |