Re: CVS update: php3/functions

From: Date: Fri, 02 Jul 1999 19:07:01 +0000
Subject: Re: CVS update: php3/functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-8008@lists.php.net to get a copy of this message
These and the other casts are to avoid syntax errors for the osxs parser, it has a hard time with anything like struct->func(). For some reason it has not occured to me to try it before, but these changes would be unnecessary if a -traditional-cpp flag is used to compile. I never did it because I don't know enough about autoconf to get it to detect the platform and set the flag, and I had initially assumed (wrongly) that the cpp meant c++. On Fri, 2 Jul 1999, Sascha Schumann wrote: > > - module->info_func(); > > + (void) module->info_func(); > > Why is that necessary? We don't want to be ANSI C conform, do we? > > > - pvptr = (char *) (pval->n_value + total_digits - toss - 1); > > + pvptr = (char *) (((int) pval->n_value) + total_digits - toss - 1); > > Argh. That will break on every platform but 32-bit. > > -- > > Regards, > > Sascha Schumann > Consultant > > -- > PHP Development Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#8008) next »