Build question

Joel Brobecker brobecker@adacore.com
Mon Sep 7 22:12:00 GMT 2009


> > +static inline int _isalpha(int c)
> > +{ 
> > +  if (c <= 'Z' && c >= 'A')
> > +    return TRUE;
> > +  if (c <= 'z' && c >= 'a')
> > +    return TRUE;
> > +  return FALSE;
> > +}
> 
> I'm not sure what The Powers That Be think about defining inline
> functions in a header.

As far as I am concerned, I would really like us to avoid them.
In this case, is the author trying to achieve performance or
to get a behavior that's independent from the locale?

-- 
Joel



More information about the Gdb-patches mailing list