This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build question


> > +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


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