This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
gc.c question
- To: guile at sourceware dot cygnus dot com
- Subject: gc.c question
- From: Han-Wen Nienhuys <hanwen at cs dot uu dot nl>
- Date: Mon, 29 May 2000 12:58:28 +0200 (CEST)
- Reply-To: hanwen at cs dot uu dot nl
Hi all,
I was looking over gc.c yesterday, and I don't get it: what is the
difference between SCM_GCMARKP() and SCM_GC8MARKP ()?
Why doesn't scm_gc_mark look like this?
scm_gc_mark (SCM p)
{
[..introductory stuff.. ]
if (SCM_GCMARKP(p) || SCM_GC8MARKP(p))
return;
[.. big type-switch here..]
}
now there is a
if (SCM_GC8?MARKP(p))
return;
duplicated for every type. Seems wasteful (and therefore slightly
inefficient) to me.
--
Han-Wen Nienhuys, hanwen@cs.uu.nl ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html