Date: Mon, 14 Jul 1997 16:31:58 -0700 (PDT) From: "Jonathan M. Bresler" <jmb> To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Cc: jmb@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: ispunct(3) [was: FreeBSD-2.1.1] Message-ID: <199707142331.QAA21580@hub.freebsd.org> In-Reply-To: <199707141916.PAA07598@khavrinen.lcs.mit.edu> from "Garrett Wollman" at Jul 14, 97 03:16:09 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman wrote: > > <<On Mon, 14 Jul 1997 12:14:09 -0700 (PDT), "Jonathan M. Bresler" <jmb@FreeBSD.ORG> said: > > > Garrett, > > i am sure that you are correct, but i would prefer more portable code. > > UCHAR_MIN seems to be in short supply. (UCHAR_MAX might be too). > > isascii() is everywhere. > > No it's not. That's the whole point. Yes, there are substandard > implementations which need such hackery. The appropriate method is to > write to the Standard and provide alternatives for substandard > systems. Garrett, even FreeBSD current does not seem to have UCHAR_MIN. what system is your test program supposed to be for? Aspen:[209] uname -a FreeBSD Aspen.Woc.Atinc.COM 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Mon Jul 14 18:04:43 EDT 1997 jmb@Aspen.Woc.Atinc.COM:/other/src/sys/compile/ASPEN i386 Aspen:[210] grep UCHAR /usr/include/* /usr/include/machine/* /usr/include/machine/limits.h:#define UCHAR_MAX 255 /* max value for an unsigned char */ Aspen:[211] gcc /tmp/a.c /tmp/a.c: In function `main': /tmp/a.c:10: `UCHAR_MIN' undeclared (first use this function) /tmp/a.c:10: (Each undeclared identifier is reported only once /tmp/a.c:10: for each function it appears in.) jmb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707142331.QAA21580>