This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Pascal Strings -- TAKE FOUR
- To: zlaski at apple dot com
- Subject: Re: PATCH: Pascal Strings -- TAKE FOUR
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Wed, 4 Jul 2001 01:50:06 -0700
- CC: gcc-patches at gcc dot gnu dot org
- References: <200107040322.UAA19337@scv1.apple.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> 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>