PATCH: Pascal Strings -- TAKE FOUR

Geoff Keating geoffk@geoffk.org
Wed Jul 4 01:35:00 GMT 2001


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



More information about the Gcc-patches mailing list