This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: PATCH: Pascal Strings -- TAKE FOUR


> Date: Tue, 3 Jul 2001 20:22:49 -0700
> From: Ziemowit Laski <zlaski@apple.com>
> Cc: gcc-patches@gcc.gnu.org
> 
> 
> On Tuesday, July 3, 2001, at 06:10 , Geoff Keating wrote:
> 
> >> Another approach, I guess, could be to #ifdef that particular
> >> test away on platforms where char is not 8 bits wide.
> >
> > I think that's probably the best choice.
> 
> I guess I'll need to #include <limits.h> to grab the UCHAR_MAX value --
> or is there another way of conjuring up this information without 
> including
> anything?  I'd prefer to keep #includes out of test cases, if at all
> possible...

I think <limits.h> is your best bet.  It will be GCC's limits.h, so
it shouldn't be much of a problem.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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