CVS update: php3/functions
| From: | rasmus | Date: | Wed, 11 Nov 1998 16:35:01 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2336@lists.php.net to get a copy of this message | ||
Date: Wednesday November 11, 1998 @ 11:35
Author: rasmus
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv9330/functions
Modified Files:
quot_print.c
Log Message:
Shut up gcc -Wall on this file. isdigit() wants an int.
Index: php3/functions/quot_print.c
diff -c php3/functions/quot_print.c:1.1 php3/functions/quot_print.c:1.2
*** php3/functions/quot_print.c:1.1 Tue Nov 10 19:10:27 1998
--- php3/functions/quot_print.c Wed Nov 11 11:34:59 1998
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: quot_print.c,v 1.1 1998/11/11 00:10:27 rasmus Exp $ */
#include <stdlib.h>
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: quot_print.c,v 1.2 1998/11/11 16:34:59 rasmus Exp $ */
#include <stdlib.h>
***************
*** 46,52 ****
/*
* Converting HEX char to INT value
*/
! static char _php3_hex2int(char c)
{
if ( isdigit(c) )
{
--- 46,52 ----
/*
* Converting HEX char to INT value
*/
! static char _php3_hex2int(int c)
{
if ( isdigit(c) )
{
***************
*** 83,95 ****
while ( str[i] )
{
if ( (str[i] == '=') && str[i+1] && str[i+2] &&
! ( isdigit(str[i+1]) || (str[i+1]<='F' &&
str[i+1]>='A'))
&&
! ( isdigit(str[i+2]) || (str[i+2]<='F' &&
str[i+2]>='A'))
)
{
! str[j++] = (_php3_hex2int(str[i+1]) << 4 )
! + _php3_hex2int(str[i+2]);
i += 3;
}
else if ( str[i] == 13 )
--- 83,95 ----
while ( str[i] )
{
if ( (str[i] == '=') && str[i+1] && str[i+2] &&
! ( isdigit((int)str[i+1]) || (str[i+1]<='F' &&
str[i+1]>='A'))
&&
! ( isdigit((int)str[i+2]) || (str[i+2]<='F' &&
str[i+2]>='A'))
)
{
! str[j++] = (_php3_hex2int((int)str[i+1]) << 4 )
! + _php3_hex2int((int)str[i+2]);
i += 3;
}
else if ( str[i] == 13 )
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net