This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gc.c question




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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]