This is the mail archive of the guile@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]

Re: inline (Re: guile: going the way of DEATH)


Bruce Stephens <b.stephens@isode.com> writes:

> Greg Badros <gjb@cs.washington.edu> writes:
> 
> > Hmmm... we protect that one with #ifdef __GNUC__, though.  From scwm.h:
> > 
> > #ifdef __GNUC__
> > #  ifdef SCWM_DEBUG_MSGS
> > #    define DBUG(x,y...) scwm_msg(DBG,x,## y)
> > #  else
> > #    define DBUG(x,y...)                /* no messages */
> > #  endif
> > #else
> > /* Not GNUC, so no varargs macros */
> > #  ifdef SCWM_DEBUG_MSGS
> > #    define DBUG(x,y) scwm_msg(DBG,x,y)
> > #    define DBUG(x,y,a) scwm_msg(DBG,x,y,a)
> 
> ...
> 
> I think this is illegal.  According to tchk,
> <URL:http://alph.dra.hmg.gb/TenDRA/>:

Yep.  Of course.  Duh on me.  This is why the preprocessor is so lame -- 
branches of code never get tested and we do really stupid things.

Thanks.  I'll fix this problem in Scwm soon.

Greg