[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 43/88: Remove TEST_CHANGE_CLASS
From: |
Andy Wingo |
Subject: |
[Guile-commits] 43/88: Remove TEST_CHANGE_CLASS |
Date: |
Fri, 23 Jan 2015 15:25:44 +0000 |
wingo pushed a commit to branch master
in repository guile.
commit 623a259935be05b65fbc97fec1a1c925a5d91c11
Author: Andy Wingo <address@hidden>
Date: Sat Jan 10 00:55:44 2015 +0100
Remove TEST_CHANGE_CLASS
* libguile/goops.c (TEST_CHANGE_CLASS): Remove unused macro and comment.
---
libguile/goops.c | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/libguile/goops.c b/libguile/goops.c
index 6e1fceb..8a8f8ac 100644
--- a/libguile/goops.c
+++ b/libguile/goops.c
@@ -91,41 +91,11 @@ static SCM var_slot_bound_p = SCM_BOOL_F;
static SCM var_slot_exists_p = SCM_BOOL_F;
-SCM_SYMBOL (sym_slot_unbound, "slot-unbound");
-SCM_SYMBOL (sym_slot_missing, "slot-missing");
SCM_SYMBOL (sym_change_class, "change-class");
SCM_VARIABLE (scm_var_make_extended_generic, "make-extended-generic");
-/* Class redefinition protocol:
-
- A class is represented by a heap header h1 which points to a
- malloc:ed memory block m1.
-
- When a new version of a class is created, a new header h2 and
- memory block m2 are allocated. The headers h1 and h2 then switch
- pointers so that h1 refers to m2 and h2 to m1. In this way, names
- bound to h1 will point to the new class at the same time as h2 will
- be a handle which the GC will use to free m1.
-
- The `redefined' slot of m1 will be set to point to h1. An old
- instance will have its class pointer (the CAR of the heap header)
- pointing to m1. The non-immediate `redefined'-slot in m1 indicates
- the class modification and the new class pointer can be found via
- h1.
-*/
-
-#define TEST_CHANGE_CLASS(obj, class) \
- { \
- class = SCM_CLASS_OF (obj); \
- if (scm_is_true (SCM_OBJ_CLASS_REDEF (obj))) \
- { \
- scm_change_object_class (obj, class, SCM_OBJ_CLASS_REDEF (obj));\
- class = SCM_CLASS_OF (obj); \
- } \
- }
-
#define SCM_GOOPS_UNBOUND SCM_UNBOUND
#define SCM_GOOPS_UNBOUNDP(x) (scm_is_eq (x, SCM_GOOPS_UNBOUND))
- [Guile-commits] 35/88: Refactor to <class> slot computation, (continued)
- [Guile-commits] 35/88: Refactor to <class> slot computation, Andy Wingo, 2015/01/23
- [Guile-commits] 38/88: <class> accessors implemented in Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 30/88: Remove private var_no_applicable_method capture, Andy Wingo, 2015/01/23
- [Guile-commits] 26/88: Deprecate C exports of GOOPS classes., Andy Wingo, 2015/01/23
- [Guile-commits] 41/88: Goops slot-unbound / slot-missing cleanups, Andy Wingo, 2015/01/23
- [Guile-commits] 40/88: Move slot-ref et al to Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 44/88: No more concept of "pure generics", Andy Wingo, 2015/01/23
- [Guile-commits] 45/88: Remove scm_c_extend_primitive_generic, Andy Wingo, 2015/01/23
- [Guile-commits] 47/88: Rewrite %initialize-object in Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 48/88: Deprecate scm_get_keyword, Andy Wingo, 2015/01/23
- [Guile-commits] 43/88: Remove TEST_CHANGE_CLASS,
Andy Wingo <=
- [Guile-commits] 42/88: Remove pure-generic?, Andy Wingo, 2015/01/23
- [Guile-commits] 46/88: Minor goops.c tidying, Andy Wingo, 2015/01/23
- [Guile-commits] 37/88: goops: use computed class slot offsets; untabify and fix whitepace, Andy Wingo, 2015/01/23
- [Guile-commits] 50/88: Re-use the vtable "size" field for GOOPS nfields, Andy Wingo, 2015/01/23
- [Guile-commits] 52/88: Reimplement inherit-applicable! in Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 54/88: Incorporate %inherit-magic! into %init-layout!, Andy Wingo, 2015/01/23
- [Guile-commits] 49/88: Move <class> initialization to Scheme, Andy Wingo, 2015/01/23
- [Guile-commits] 56/88: GOOPS cleanup to use SRFI-1 better, Andy Wingo, 2015/01/23
- [Guile-commits] 57/88: append-map rather than mapappend, Andy Wingo, 2015/01/23
- [Guile-commits] 58/88: GOOPS utils module cleanups, Andy Wingo, 2015/01/23