tony2001 Fri Aug 3 09:48:58 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/main spprintf.c
Log:
MFH: add I64 support to spprintf()
http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.25.2.2.2.7&r2=1.25.2.2.2.8&diff_format=u
Index: php-src/main/spprintf.c
diff -u php-src/main/spprintf.c:1.25.2.2.2.7
php-src/main/spprintf.c:1.25.2.2.2.8
--- php-src/main/spprintf.c:1.25.2.2.2.7 Mon Jun 25 08:39:10 2007
+++ php-src/main/spprintf.c Fri Aug 3 09:48:58 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spprintf.c,v 1.25.2.2.2.7 2007/06/25 08:39:10 dmitry Exp $ */
+/* $Id: spprintf.c,v 1.25.2.2.2.8 2007/08/03 09:48:58 tony2001 Exp $ */
/* This is the spprintf implementation.
* It has emerged from apache snprintf. See original header:
@@ -302,6 +302,16 @@
fmt++;
modifier = LM_LONG_DOUBLE;
break;
+ case 'I':
+ fmt++;
+#if SIZEOF_LONG_LONG
+ if (*fmt == '6' && *(fmt+1) == '4') {
+ fmt += 2;
+ modifier = LM_LONG_LONG;
+ } else
+#endif
+ modifier = LM_LONG;
+ break;
case 'l':
fmt++;
#if SIZEOF_LONG_LONG
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php