summaryrefslogtreecommitdiff
path: root/libguile/goops.c
diff options
context:
space:
mode:
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2003-09-18 20:55:40 +0000
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2003-09-18 20:55:40 +0000
commit534c55a97d9860059a2d2042263cce3cad364b2c (patch)
treed50165f4aa115e6fac127fcd8fdfd51eac834ffc /libguile/goops.c
parent29c4382afda07debaef4f5d2534f5272bca15fdd (diff)
downloadguile-534c55a97d9860059a2d2042263cce3cad364b2c.tar.gz
This set of patches introduces a new tc7 code scm_tc7_number for
numbers. Bignums, reals and complex numbers are turned from smobs into subtypes of scm_tc7_number. * tags.h (scm_tc7_number): New. * eq.c (scm_equal_p), eval.c (SCM_CEVAL), evalext.c (scm_self_evaluating_p), gc-card.c (scm_i_sweep_card), gc-mark.c (scm_gc_mark_dependencies), goops.c (create_smob_classes), hash.c (scm_hasher), numbers.c, numbers.h (SCM_NUMP), objects.c (scm_class_of), print.c (scm_iprin1), smob.c (scm_smob_prehistory): Don't handle bignums, reals and complex numbers as subtypes of scm_tc7_smob any more. * numbers.h, tags.h (scm_tc16_big, scm_tc16_real, scm_tc16_complex): Moved definitions from tags.h to numbers.h.
Diffstat (limited to 'libguile/goops.c')
-rw-r--r--libguile/goops.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libguile/goops.c b/libguile/goops.c
index 1a2bb7304..44da20efe 100644
--- a/libguile/goops.c
+++ b/libguile/goops.c
@@ -2516,9 +2516,6 @@ create_smob_classes (void)
for (i = 0; i < 255; ++i)
scm_smob_class[i] = 0;
- scm_smob_class[SCM_TC2SMOBNUM (scm_tc16_big)] = scm_class_integer;
- scm_smob_class[SCM_TC2SMOBNUM (scm_tc16_real)] = scm_class_real;
- scm_smob_class[SCM_TC2SMOBNUM (scm_tc16_complex)] = scm_class_complex;
scm_smob_class[SCM_TC2SMOBNUM (scm_tc16_keyword)] = scm_class_keyword;
for (i = 0; i < scm_numsmob; ++i)