Re: ctype funcitons

From: Date: Thu, 07 Mar 2002 03:48:31 +0000
Subject: Re: ctype funcitons
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-80834@lists.php.net to get a copy of this message
Hartmut, After a brief bit more of playing here, what I've discovered is: The offending lines all look like this: if(ctype(isalnum, &c)) { For some reason the MacOSX compiler is considering isalnum a variable that is undefined. Changing the line to: if(isalnum(&c)) { works, albiet with some warnings. There seems to be a small difference in the MacOSX ctype.h though. FreeBSD: int isalpha __P((int)); MacOSX : #define isalpha(c) __istype((c), _A) Linux : #define __exctype(name) extern int name (int) __THROW __exctype (isalpha); A bit drastic of a difference :\ On Wed, 6 Mar 2002, Hartmut Holzgraefe wrote: > Dan Kalowsky wrote: > > From building PHP on a MacOSX machine: > > > > ctype.c: In function `zif_ctype_alnum': > > ctype.c:126: `isalnum' undeclared (first use in this function) > > ctype.c:126: (Each undeclared identifier is reported only once > > ctype.c:126: for each function it appears in.) > [...] > > > ext/ctype/ctype.c includes <ctype.h>, isalpha() and friends > are supposed to be defined in there, is this different on OS/X, > and if so: why? > > > >---------------------------------------------------------------< Dan Kalowsky "Tonight I think I'll walk alone. http://www.deadmime.org/~dank I'll find soul as I go home." dank@deadmime.org - "Temptation", New Order

« previous php.dev (#80834) next »